Fix libjpeg errors due to a problem where system-wide libraries were loaded first