Use LDFLAGS when linking. Use CC instead of LD since LDFLAGS for relro are prefixed with "-Wl,". Cleanup some pkglint.