fixes undefined method GetConsoleScreenBufferInfo and undefined method GetStdHandle on Windows running Ruby 1.8.7