Fixed cmake not working for window builds