Fix plugin codec error when using Qt5 on static builds. Now we check for the correct version before adding the codecs plugins.