contrib: jpeg: do not redefine FALSE/TRUE on OSX

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
auhal: add missing bounds checking (close #10110)
auhal: prevent assertion failure on TPCircularBufferClear (close #10109)