Fixed external-dep-rebuild scripts after testing.

Also upated all projects to use libc++, set compiler, deployment target and library search directories.