Added patch that fixes build on FreeBSD.