Fixed a few warnings in some OSX plugin builds.