link using pkg-config instead of LDFLAGS