Fix 64bit-related warnings

closes #1
Merge pull request #2 from novkostya/bugfix/1-warnings

Fix 64bit-related warnings