made code portable for MSVC2012