fix macOS compilation due to boolean define in jpeglib

2 jobs for ep/jpegwriter_macos_compilation in 3 minutes and 16 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Build
passed #19734
build

00:03:16

canceled #19731
build

00:00:23