first part of adding better freebsd support - eventual upstream request