Setresuid support

This fixes #275