bug fixed: gets might be nil

When I install kgio, it failed. The error message is:

/opt/ruby21/lib64/ruby/2.1.0/mkmf.rb:705:in `Integer': can't convert nil into Integer (TypeError)
        from /opt/ruby21/lib64/ruby/2.1.0/mkmf.rb:705:in `block in try_constant'