Makfile: use LINK for the link phase

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/log: include minmax.h for min()

Signed-off-by: Jens Axboe <axboe@kernel.dk>