Fix build by unsetting LD_AS_NEEDED