Some hacks to help this compile on Windows.