fix compiler error for msvc120
fix compiler error for msvc120
replace raw pointer with vector