fix 64bit issues
Update to 10.8 SDK / XCode 4.5