[static] rework the static qt4 build.