The second commit contains the FreeBSD support - hopefully all behind #ifdefs The first commit contains changes that are needed to work on FreeBSD but are not specific to it such as sealing and detailed memory clash checks
The tip of this branch has been tested on FreeBSD/Morello but not Android/Morello. The first commit has not been tested in isolation