fixed pointer size issue on 64bit mac osx