Fix alertdispatcher.cpp compilability on Qt5.