Fix msvc compile error and improve 64 bit compatibility
Merge pull request #973 from cgohlke/patch-1

Fix msvc compile error and improve 64 bit compatibility