Adapt to changed Mojo api.
Merge pull request #1 from Csson/master

Adapt to changed Mojo api.