Add fallback support for activesupport 2

Looks like the dependencies into activesupport are specific to versions > 2, even though the gem is nonspecific about the version it requires. This made it so that I couldn't use protobuf with a rails 2 app. The changes I made work under both versions of activesupport according to the specs.