Fix build with Qt <= 5.1.

Fixed two small issues:
- missing #ifdef HAVE_SG_INSPECTOR in quickinspector.cpp
- accidently included metaobjectrepository.h inside a
  #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)