Fix build on sparc
Add missing dfsg removals
Fix build on kFreeBSD
Merge pull request #1 from mat8913/master

A few fixes