Fix FTBFS for kFreeBSD and Hurd