Fixes for respond_to? on ruby 2.0+