* added support for freebsd (tested on freebsd 10.0)