Fixed Visual C++ 10 build