Fixed Windows build

Fixed errors in windows build