Made it compiles on OS X and added 64 bit hash