Set library directories from pkg-config.