Fixed cmake for windows builds