workaround for libjpeg/glib boolean conflict