Fixed simple_demo_dll compilation error from msvc bugs