Fix build on Hurd

[CC @AlainODea]
Please revert 7faccfa or apply this one.
I'm just fixing the build, didn't test the software so better solutions will be welcome.
Thanks for considering.