Sync with FreeBSD (except sanity and removal of perl