Changed  jpeg.lib and giflib paths. Use --with-jpeg --with-gif to build with gif, jpeg support.