Adapt the plugin for OSX platform