Fix cmake configuration for windows environment