Fixes 64bit compiler warnings.
Merge pull request #6 from josipbernat/master

Fixes 64bit compiler warnings.