fix pids over int16 in OSX
Merge pull request #19 from mcuadros/PidGenerationInt16InOSX

fix pids over int16 in OSX