Define INFINITIY and NAN in mathematics.h if missing