Make the consumer backward compatible to ruby 1.8