fix ruby-2.x build