Replaced the remanining foreach calls with for (x : y)
and added -DQT_DISABLE_Q_FOREACH to CMakeLists.txt