compiling ruby 2.1

Hi
i try to build for ruby 2.1 and find some problems..
this changes allow me to build.. correctly