Import readline 5.1 on the branch.