fix warnings with MSVC2012