Pass linker flags from configure.ac to other files.

This works similarly to how PKG_CHECK_MODULES does things.