Fixed some compilation erros under MSVC++