Build fixes for on Windows.