Fixing build for ruby 2+