fix a bug of plugin loading on Qt5