Fix libjpeg12 build