Fix for 64-bit
Merge pull request #32 from hattya/64-bit

Fix for 64-bit