Adding Set setregid

Hi,

I needed to set the process GID, so I added setregid in the bindings.

I also made these calls throw exceptions when fail.

I would have worked on the Readme, but I don't know where to start ?