Basic fixes for Windows Build

I don't understand. Why is this suddenly needed?