Support for cmake and windows batch modes