Fix Class::hash and Class::compare to work with python disabled and fix references to inlined constants in numeric_limits that was causing issues trying compile with stdlib=libc++