Updated pid.c plugin for OSX compile