Fixed build on FreeBSD.