fixed compile error with vs2012