windows: Make code MSVC compatible again