Casting pointers to int causes errors on some OS
Merge pull request #2 from chrisidefix/ptr_cast_fix

Casting pointers to int causes errors on some OS