clang fixes for 10.8+