Fixed Ruby 1.8.7 syntax compatibility issues and workarounds with other gems/classes
Merge pull request #26 from androbtech/18_compatibility

Fixed Ruby 1.8.7 syntax compatibility issues and workarounds other gems (issue #23)