Add makefile and patches for MuPDF and OpenJPEG