check for libedit in readline on OS X

ensures readline is expressed as setuptools dependency on OS X if libedit is detected.
Merge pull request #4665 from minrk/readline-check

check for libedit in readline on OS X