Add user specified include and link directories

The curl cmakelists use the cmake macros check_library_exists() and
check_include_file() to search for libs and headers.  These macros use
path hints that can be user specified using the variables
CMAKE_LIBRARY_PATH and CMAKE_REQUIRED_INCLUDES, so these variables
should be added as include and link dirs.