Add patch to fix compilation failure on kfreebsd-*.