Fix build.sh for OSX
- set deployment target to 10.7 with libc++ enabled