Fix compilation with OSX C++ lib