fix a build error in environment which uses Ruby 1.8

http://hipbyte.myjetbrains.com/youtrack/issue/RM-463