Fix readline 6.3 compilation problems
Merge pull request #6596 from JuliaLang/readline_patch

[release-0.2] Fix readline 6.3 compilation problems