Re-add the ignore for *~
Improve pkg-config handling by resolving full library paths.