OS X clang build issue fix