diff -up denemo-0.8.18/src/graceops.c.orig denemo-0.8.18/src/graceops.c
--- denemo-0.8.18/src/graceops.c.orig	2010-07-11 19:45:56.344940905 +0200
+++ denemo-0.8.18/src/graceops.c	2010-07-11 19:45:18.814942752 +0200
@@ -9,6 +9,7 @@
 #include "graceops.h"
 #include <denemo/denemo.h>
 #include "utils.h"
+#include <string.h>
 
 
 /**
diff -up denemo-0.8.18/src/importmidi.c.orig denemo-0.8.18/src/importmidi.c
--- denemo-0.8.18/src/importmidi.c.orig	2010-04-10 05:18:51.000000000 +0200
+++ denemo-0.8.18/src/importmidi.c	2010-07-11 19:39:27.239942530 +0200
@@ -649,6 +649,7 @@ process_track(smf_track_t *track)
     smf_track_remove_from_smf(track);
     smf_delete(smf);
   }
+  return 1;
 }
 
 void AddStaff(){
diff -up denemo-0.8.18/src/main.c.orig denemo-0.8.18/src/main.c
--- denemo-0.8.18/src/main.c.orig	2010-07-11 19:47:33.520942611 +0200
+++ denemo-0.8.18/src/main.c	2010-07-11 19:52:31.072941789 +0200
@@ -516,7 +516,7 @@ main (int argc, char *argv[])
     gchar *choice = get_option(choice1"\0"choice2"\0"choice3"\0"choice4"\0", strlen(choice1)+1+strlen(choice2)+1+strlen(choice3)+1+strlen(choice4)+1);
     if(choice==NULL)
       choice = choice1;
-    if(choice!=choice1) {
+    if(strcmp(choice, choice1)) {
       choice = g_strdup(choice);
       gchar *c;
       for(c=choice;*c;c++)
diff -up denemo-0.8.18/src/view.c.orig denemo-0.8.18/src/view.c
--- denemo-0.8.18/src/view.c.orig	2010-07-07 07:12:28.000000000 +0200
+++ denemo-0.8.18/src/view.c	2010-07-11 19:39:27.258936739 +0200
@@ -4164,7 +4164,7 @@ static void pb_range (GtkWidget *button)
 static void pb_panic (GtkWidget *button) {
   playback_panic();
 }
-static track_delete(smf_track_t *track) {
+static void track_delete(smf_track_t *track) {
   if(track==NULL)
     return;
   if(track->smf==NULL ) {
