Index: gnucash-2.4.6/src/import-export/aqbanking/Makefile.am
===================================================================
--- gnucash-2.4.6.orig/src/import-export/aqbanking/Makefile.am
+++ gnucash-2.4.6/src/import-export/aqbanking/Makefile.am
@@ -45,6 +45,7 @@ libgncmod_aqbanking_la_LIBADD = \
   ${GNOME_LIBS} \
   ${GLADE_LIBS} \
   ${GLIB_LIBS} \
+  ${GUILE_LIBS} \
   ${GWENGUI_GTK2_LIBS} \
   ${AQBANKING_LIBS}
 
@@ -64,6 +65,7 @@ AM_CFLAGS = \
   ${GNOME_CFLAGS} \
   ${GLADE_CFLAGS} \
   ${GLIB_CFLAGS} \
+  ${GUILE_INCS} \
   ${AQBANKING_CFLAGS}
 
 uidir = $(GNC_UI_DIR)
Index: gnucash-2.4.6/src/guile-mappings.h
===================================================================
--- gnucash-2.4.6.orig/src/guile-mappings.h
+++ gnucash-2.4.6/src/guile-mappings.h
@@ -17,7 +17,7 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.        *
 \********************************************************************/
 
-#include <libguile/version.h> /* for SCM_MAJOR_VERSION etc */
+#include <libguile.h> /* for SCM_MAJOR_VERSION etc */
 
 /* Give Guile 1.6 and 1.8 a 2.0-like interface */
 #if (SCM_MAJOR_VERSION == 1) && (SCM_MINOR_VERSION <= 6)
Index: gnucash-2.4.6/src/plugins/bi_import/Makefile.am
===================================================================
--- gnucash-2.4.6.orig/src/plugins/bi_import/Makefile.am
+++ gnucash-2.4.6/src/plugins/bi_import/Makefile.am
@@ -29,7 +29,8 @@ libgncmod_bi_import_la_LIBADD = \
   ${GNOME_LIBS} \
   ${GLADE_LIBS} \
   ${QOF_LIBS} \
-  ${GLIB_LIBS}
+  ${GLIB_LIBS} \
+  ${GUILE_LIBS}
 
 AM_CFLAGS = \
   -I${top_srcdir}/src \
@@ -52,6 +53,7 @@ AM_CFLAGS = \
   ${GNOME_CFLAGS} \
   ${GLADE_CFLAGS} \
   ${QOF_CFLAGS} \
-  ${GLIB_CFLAGS}
+  ${GLIB_CFLAGS} \
+  ${GUILE_INCS}
 
 INCLUDES = -DG_LOG_DOMAIN=\"gnc.plugin.bi_import\"
