clang++/OSX comatibility