check RL_READLINE_VERSION and assume that rl_completion_func_t didn't exist before 6.0