Optimize QT4_GENERATE_MOCS macro getting moc flags only when needed
Optimize QT4_GENERATE_MOCS macro getting moc flags only when needed

See #449

laurennlam/CTK,AndreasFetzer/CTK,mehrtash/CTK,ddao/CTK,danielknorr/CTK,naucoin/CTK,jcfr/CTK,151706061/CTK,CJGoch/CTK,naucoin/CTK,commontk/CTK,fedorov/CTK,laurennlam/CTK,CJGoch/CTK,msmolens/CTK,msmolens/CTK,danielknorr/CTK,AndreasFetzer/CTK,Heather/CTK,rkhlebnikov/CTK,SINTEFMedtek/CTK,commontk/CTK,CJGoch/CTK,fedorov/CTK,Sardge/CTK,sankhesh/CTK,rkhlebnikov/CTK,SINTEFMedtek/CTK,CJGoch/CTK,commontk/CTK,Heather/CTK,rkhlebnikov/CTK,CJGoch/CTK,Sardge/CTK,Sardge/CTK,ddao/CTK,commontk/CTK,Heather/CTK,danielknorr/CTK,mehrtash/CTK,naucoin/CTK,fedorov/CTK,sankhesh/CTK,sankhesh/CTK,laurennlam/CTK,ddao/CTK,AndreasFetzer/CTK,sankhesh/CTK,jcfr/CTK,Sardge/CTK,msmolens/CTK,mehrtash/CTK,pieper/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,jcfr/CTK,Heather/CTK,naucoin/CTK,fedorov/CTK,msmolens/CTK,151706061/CTK,rkhlebnikov/CTK,151706061/CTK,pieper/CTK,151706061/CTK,jcfr/CTK,pieper/CTK,SINTEFMedtek/CTK,jcfr/CTK,danielknorr/CTK,AndreasFetzer/CTK,151706061/CTK,ddao/CTK,mehrtash/CTK,laurennlam/CTK,pieper/CTK