diff --git a/include/denemo/denemo_types.h b/include/denemo/denemo_types.h
index 1d67827..11a997d 100644
--- a/include/denemo/denemo_types.h
+++ b/include/denemo/denemo_types.h
@@ -445,7 +445,7 @@ enum
   COL_ROW,
   COL_SCHEME,
   N_COLUMNS
-} COMMAND_COLS;
+};
 
 typedef enum { TYPESET_EXCERPT, TYPESET_MOVEMENT, TYPESET_ALL_MOVEMENTS} typeset_type;
 
@@ -1258,6 +1258,7 @@ struct DenemoRoot
   gboolean *silent; /** Don't log any message */
   gboolean *verbose; /** Display every messages */
   guint pending_layout_id;//Non zero when the current layout being created will be renamed to have this id 
-}  Denemo; /**< The root object. */
+};
 
+extern struct DenemoRoot Denemo; /**< The root object. */
 #endif
diff --git a/src/export/print.c b/src/export/print.c
index a42571e..2a67960 100644
--- a/src/export/print.c
+++ b/src/export/print.c
@@ -31,6 +31,9 @@
 #include "export/exportlilypond.h"
 #include "core/utils.h"
 
+gint LilyPond_stderr;       //A file descriptor to pipe for LilyPond's stderr
+GError *lily_err;
+GPid previewerpid;
 
 
 #if GTK_MAJOR_VERSION==3
diff --git a/src/export/print.h b/src/export/print.h
index db0c8f1..64a3a8d 100644
--- a/src/export/print.h
+++ b/src/export/print.h
@@ -108,9 +108,9 @@ typedef struct WysiwygInfo
   GtkWidget *dialog;            //an info dialog to tell the user what to do next...
 } WysiwygInfo;
 
-gint LilyPond_stderr;       //A file descriptor to pipe for LilyPond's stderr
-GError *lily_err;
-GPid previewerpid;
+extern gint LilyPond_stderr;       //A file descriptor to pipe for LilyPond's stderr
+extern GError *lily_err;
+extern GPid previewerpid;
 
 WysiwygInfo* get_wysiwyg_info();
 void initialize_print_status (void);
