Fixed building with clang on OS X > 10.8