Added compatibility with version 0.9

Patch originally proposed by Sebastien Blaisot.
Merge pull request #18 from hypertrek/patch-1

Added compatibility with version 0.9
Merge remote-tracking branch 'upstream/master'