Add pkg-config to tools.
Move some definitions out of the gcc-specific part of the Makefile.

Still doesn't build for me with clang.