Minor misc. fixes on Windows (mostly related to our plugins).