Fixes a moc generation error with boost >= 1.48