common: Fix build with Qt4 and/or MSVC