Fix bug on Qt MOC generation