Q_DECL_OVERRIDE for Qt4 only for GCC >= 4.7
Remove C++11ism that doesn't work with older GCCs