Don't use the 'emit' keyword in the moc generated code for properties  with MEMBER

Similar change as the one made for the task QTBUG-33094 in the official moc
Fix assert.

CreateDirrectory only work for temprary files
Add the -M metadata feature to match Qt 5.2