build: Factor common automakery out of backends’ Makefile.ams

This makes the backends’ build process so much more consistent, and reduces
a huge amount of copy–paste automakery.
backends: Fix paths in *-uninstalled.pc.in pkg-config files

Copy–paste errors.