Resolves errors when compiling on Windows.