Add missing new line at eof.
Simplify SDK choice with macro, use clang on 10.8 or newer.
Merge remote-tracking branch 'upstream/master' into travis-osx