fixed Windows build issues