Fix VS2010

I do some work for luv works with msvc, Please consider weather merge it. 
Thanks