Core: Fix warnings for msvc