Remove loop macro from util.h

This macro causes a lot of problems for Qt.