Fix readline 6.3 compilation problems

Readline 6.3 has removed the `Function *` types, causing compilation to fail when the user has readline 6.3 installed on their system and uses `USE_SYSTEM_READLINE=1`.  This patch also works with readline 6.2, so we retain compatibility with the readline that Julia downloads and installs.