fix building on GNU Hurd
fixes building on systems with kFreeBSD kernel