Put pkg-config calls in CFLAGS and LDFLAGS.

Signed-off-by: James Hunt <james.hunt@ubuntu.com>