Fix kernel warnings on MSVC.