Fixed for compiling with Clang on OS X.