respect DESTDIR, CFLAGS and LDFLAGS, use pkg-config if present