fixes for 64-bit compilation on Windows