restructure to make including work as expected even when adding hiredis as a subdirectory in cmake