Reverting the patch, and adding the libreadline option