Add support for Qt5 in the build system