fix macOS compilation due to boolean definition in jpeglib
boolean
is optionally defined in jmorecfg.h causing clang to abort due to an incompatible type error when compiling JpegWriter.cc.
This commit uses a static_cast<boolean>
for the assignment.