Use pkg-config to figure out libraries to link (closes #196)