removes some warnings on FreeBSD