alters build target to 64bit and base SDK to 10.8, refactors to use appropriate types