make compilation of mjpeg.c optional