64bit pointer cast fix for debug builds
Merge pull request #311 from archSeer/master

64 bit fix for debug builds