Fixed VS2010 error/warning
Fixed a couple bugs/typos in simple_math.h