Fixed up readline library dependency issues.