Fix apaenv build to linux version