fix(msvc): make all code compilable with VC >= 10