Fixes a moc generation error with boost >= 1.48

See:

https://bugreports.qt-project.org/browse/QTBUG-22829