fixed complile for ruby 2/2.1