Modifications for building also on Qt5.