Fix build ldflags for freebsd

I redo it without gofmt.