Minor fixes + avoid compilation attempt of PubSub module on windows platform
Avoid compilation attempt of PubSub module on windows platform since it is not expected to compile. Moreover compilation errors are not the one expected in case of attempt, #809 opened to fix this issue later.