updated environment.cmake and bat generators