BUILD: Support libedit readline wrapper

This is used in Mac OS X. Thanks to waltervn for pointing this out and
testing.