Fixed some small build issues on Windows.