Fix warnings from automoc

<3 sed
Merge pull request #143 from krf/fix-automoc-warnings

Fix warnings from automoc