* configure.ac: Fix jpeg version check to work with gcc >= 5.