fixes deployment target/base SDK so it is consistant across the build and interface (updated to 10.7); changes the destination of framework copy in build; adds compiler optimization flag (O2) to try and address #2