improve pkg-config call, respect CFLAGs