Moved isnan/isinf compat code to lmms_math.h