added statements to bin/compile to add environment variables to api1 and api2 pool conf files