Wrap pid after 65535. Possible solution for #104