added missing support for OSX cpp mixing