File harmonySEQ-bitrot.patch of Package harmonyseq

diff -up harmonySEQ-0.16/src/Files.cpp.orig harmonySEQ-0.16/src/Files.cpp
--- harmonySEQ-0.16/src/Files.cpp.orig	2012-02-04 12:43:26.000000000 +0100
+++ harmonySEQ-0.16/src/Files.cpp	2017-01-30 17:35:51.382126124 +0100
@@ -18,6 +18,7 @@
 */
 
 #include <fstream>
+#include <glibmm/keyfile.h>
 #include "Files.h"
 #include "messages.h"
 #include "Sequencer.h"
@@ -42,7 +43,7 @@ bool fexists(const char *filename)
    //Trick used to tell whether a file exists.
   ifstream ifile(filename);
   //Returns 1 if opening file succeeded, 0 elsewhere.
-  return ifile;
+  return ifile.good();
 }
 
 bool SetFileModified(bool modified){
diff -up harmonySEQ-0.16/src/MidiDriver.cpp.orig harmonySEQ-0.16/src/MidiDriver.cpp
--- harmonySEQ-0.16/src/MidiDriver.cpp.orig	2012-02-04 12:47:12.000000000 +0100
+++ harmonySEQ-0.16/src/MidiDriver.cpp	2017-01-30 17:21:31.125030786 +0100
@@ -213,7 +213,7 @@ void MidiDriver::ScheduleCtrlEventLinear
 void MidiDriver::ScheduleDiodeEvent(DiodeType type, seqHandle handle, int tick_time, double time, int value, int color, int max_res){
     if(diodes_disabled) return;
     DiodeMidiEvent diodeev(type,time,value,color,max_res);
-    diode_events.insert(std::make_pair<int,DiodeMidiEvent>(diode_event_id_next,diodeev));
+    diode_events.insert(std::pair<int,DiodeMidiEvent>(diode_event_id_next,diodeev));
     
     snd_seq_event_t ev;
     snd_seq_ev_clear(&ev);