CMake: Prefer check_symbol_exists over check_function_exists
check_symbol_exists
verifies that one can include a header file and
refer to a symbol. This is more robust than just checking whether one
can link to a symbol by name.
See upstream libexpat PR 175.