[libcommhistory] Fix Qt4 build