fixed 64bit build on macs