Use pkg-config to make compiling more platform independent.