Fix a mod generation error with boost >= 1.48

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