Implement Ruby 1.8 compatibility.
Force-flush stdout on Ruby 1.8 since it otherwise lags behind for several seconds.