Refactor is_nan, is_infinity and is_finite in CMath
Disable ProtoBuf detection