readline: support the new completion function types.

Adjust our prototypes to rl_completion_func_t (that is, pass 'const
char*' rather than 'char*'), and if readline supports this type, pass
our functions without casts.

Fixes bug #45.