Moved nearly_equal to static inline to avoid redfinition of the symbol