Various FreeBSD arm fixes not yet in the tree