Update cmake for Qt5 changes