Use -mmacosx-version-min=10.6 and a proper sysroot when building for macosx. (#217)
Use -mmacosx-version-min=10.6 when building console apps for macosx to prevent the linker from picking the new C++ rt library on OSX 10.9 resulting in undefined symbols. Use clang++ when linking instead of clang. (#217)