Add hurd support, from debian

This is the hurd support, from debian patch