Fixed build issues on Windows.