Fixed deprecations warnings.
Merge pull request #1 from jschueller/master

Fixed ot 1.1 deprecations warnings.