Fix clang version detection on OS X
Partial OS X compile fix