fixes for 64 bit types
Merge pull request #36 from djMax/be_xcodefixes

64 bit fixes