Adds build flags for freebsd.

This addresses issue #119