Fix compilation and testing on FreeBSD and MacOS.
- On BSD system, the package MUST be compiled using GCC. Otherwise the produced executable may be buggy (missing output, non-deterministic output).
- Fixed many issues between GNU and BSD userland used for testing.
- Added FreeBSD and MacOS in github actions CI