FreeBSD patches for hap