Enable building on debian kfreebsd-amd64

There weren't too many surprises along the way...