fix unsresolved external symbol vtable error for Visual Studio