OS X C++ build fix