Fix build on Mac OSX

Sadly this requires switching to clang and bumping the minimum required Mac
OSX version to 10.7 :(