Fixed invalid NaN definition in BasicMath