workaround for c++11 bug on OSX