fixed compilation issues on MSVC in pmd2 namespace