Prepare plug-in factories for Qt5 on Linux
Add new directive in factory header files
Remove deprecated directive in factory source files