Fix outputting static libs when they are disabled.

Curl-config outputs static libraries even when they are disabled in configure.

This causes problems with the build of pycurl.