Fixes for irb (interactive ruby).