fix incorred LDFLAGS usage