librusti: only use std::rl if stdin is connected to a tty.

This is a fairly large hack, just passing an extra argument through, and I can't test it at all, since rusti doesn't work here to begin with.