ensure that environment variables are set when compiling