Fixed compile error using Clang on OS X