separate LDFLAGS for freebsd and darwin