make readline code conditional on readline library