Miscellaneous patches for FreeBSD ports