Put MainloopThread in gstutils