native: add support for FreeBSD

tested with FreeBSD 10.0

fixes: #505