Fixed issue with clang compiler on Mac OS X