Tweak to compile on Windows