Fix compiler error in Ubuntu + Qt5