fix pids over int16 in OSX

This fix is related to #18 issue.