now compiles successfully on FreeBSD 11