classlib: classes that invoke Qt on init must protect for Qt-less setups