revert definition of QL_INFINITY (which may be misleading if has_infinity() is false), replace minus infinity by minus maximum real for log 0 (what really matters is only to have a defined value here)