make it compile on FreeBSD 10