freebsd: specify LDFLAGS by hand for workaround.