lib/util: Implement min & max macros