fallback if pkg-config fails for libcurl or libpq