minor fixes for windows platform