fix Kernel.warn calls for Ruby < 2.0.0