fix running from OS bundle
Fix build with Clang: don't specify C++ flags for C source files.
attempt to add a convenient way to target OS X 10.5