Fix for the OSX version of readline.