Fixing jpeg in Makefile.common files also