Initial support for FreeBSD platform

Author: Grzegorz Bernacki
Contributions: Dominik Ermel and Michal Dubiel
Change-Id: Ie4fc9b5e264c5ebd2374be2fa4967e9eefa15ef4