Fix compilation on GNU/Hurd
(cherry picked from commit 89ad5e67791f947ea6a13c83dbdd0bc02184b231)