fifo: use minmax.h instead of rolling its own min/max

Signed-off-by: Jens Axboe <axboe@fb.com>
Fix min/max typeof warnings

Signed-off-by: Jens Axboe <axboe@fb.com>