Fix compile problem with new env code.