Add missing definitions for NAN, POS_INF and NEG_INF