Fixed operator overload problems on Visual Studio 2010 and 2012.