Fixed all msvc10 warnings