Fixed part of deprecation problem.
support pre-0.11.8
Merge pull request #34 from rvagg/dispose

Fixed part of deprecation problem.