build fixes for OS X

stupid libjpeg and their stupid bool type argh