fix compile errors on 64-bit linux due to differing integer/pointer widths
Merge pull request #16 from kabochi/linux64

Fix compile errors on 64-bit linux