May as well set libs and defines based on package config if we're going to the trouble of calling it.