Add compatibility for building with ruby 2.2.0 (struct RFloat is no longer available)