max and min changes

Both must return an unsigned long long and must be marked
constexpr to build with Apple's libc++ shipped with Mavericks.
Yes, it sucks, but there it is.