Fixed compile cflags for freebsd and gofmt.

I modified compile cflags for freebsd.

Could merge to your repo?

Sorry for my poor english.