build: Fix windows configure when using --with-qt-libdir

fixes https://github.com/bitcoin/bitcoin/issues/4630