Fixed compilation errors in a few places with the NULL-rejecting env_t constructor.