doc: Build with qt5 is possible again

This reverts commit 62568f9a1e98065bd51069649f23a337eab89f94.
Also add some documentation for `--with-gui`.