Fix readline on osx