Standards-conformance fix for Boost.Interprocess: max_value needs to be declared before it is used, since ADL won't look here.