common: Reintroduce FreeBSD support

Change-Id: I3c8ae44d4cdc0b1aa61c89ac6b16ee6ffb60a406