PluginManager: fix Windows compilation.
Merge branch 'master' into compatibility