fix build on FreeBSD
doc: mention recent build system patch