64-bit OSX Fixes

Including fix for 'random' crash on OSX 64-bit Editor