fix Qt5 plugin registration, thanks to cazimi