Fix builds for windows