Fixed an OSX plugin build error.