Fix missing libs and env var on Linux build.