Tweaks to fix compilation on FreeBSD.
4 files changed