Adds CGO build flags for freebsd.

This addresses issue #44