Refs #283. Fixed the incorrect usage of long data type for Windows 64.