Horrid bodge to build on freebsd