build with readline as shared library