Fix FTBFS on kfreebsd-any and hird