ECMGenerateExportHeader: Use standard attribute if possible
Instead of waiting for KF6, test if the target is build with C++ >=14 and use the standard attribute in this case.
Instead of waiting for KF6, test if the target is build with C++ >=14 and use the standard attribute in this case.