include: sync min, max, min3, max3 macros with Linux

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
fix warnings