Use pkg-config to check for libcurl version Fixes autogen on OSX Lion, might fix for other platforms which don't ship those libcurl m4 macros.