[OS X] Fixed plugin callbacks not being called