check for libedit in readline on OS X

ensures readline is expressed as setuptools dependency on OS X if libedit is detected.