Replace $defout with $stdout

$defout have already disappeared from Ruby 1.9 or higher

Ref #22