serialport compatibility ruby 2.0