Fix build on FreeBSD (#209)

This fixes building on FreeBSD.
The gmake problem is illustrated in https://github.com/OpenTSDB/opentsdb/issues/209