Support pkg-config if no directory is given.