Fixes compilation on FreeBSD.