fix a couple of FreeBSD compile warnings