Fix QT_NO_DEBUG not defined in Release build if cmake < 2.8.12