gtkmathview: one patch to fix it all

I merged all already necessary patches with some additional lines
needed with gcc 4.8 to create that patch.