Fixed|libcommon: Qt 4 compatibility

QMap::first() was added in Qt 5.2.