Fix the dependency nightmare that is libreadline

refs #8091