Make compatibility with Visual Studio 10 at cmake