Fix unresolved typename bug for MSVC