workaround MSVC problems