Fix so package is built on freebsd