Index: trunk/zoo-project/zoo-services/qrencode/Makefile
===================================================================
--- trunk/zoo-project/zoo-services/qrencode/Makefile	(revision 536)
+++ trunk/zoo-project/zoo-services/qrencode/Makefile	(revision 743)
@@ -1,9 +1,9 @@
 ZRPATH=../..
 include ${ZRPATH}/zoo-kernel/ZOOMakefile.opts
-CFLAGS=${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG
+CFLAGS=-I${INST_INCLUDE} ${ZOO_CFLAGS} ${XML2CFLAGS} ${GDAL_CFLAGS} ${PYTHONCFLAGS} -DLINUX_FREE_ISSUE #-DDEBUG
 CC=gcc
 
 cgi-env/qrencode.zo: qrenc-service.c
-	g++ -DZOO_SERVICE_PROVIDER ${CFLAGS} -shared -fpic -o cgi-env/qrencode.zo ./qrenc-service.c -lqrencode ${GDAL_LIBS} -lpng ${MACOS_LD_FLAGS}
+	g++ -DZOO_SERVICE_PROVIDER ${CFLAGS} -shared -fpic -o cgi-env/qrencode.zo ./qrenc-service.c -lqrencode ${GDAL_LIBS} -lpng ${MACOS_LD_FLAGS} -L${INST_LIB} -lzoo_service
 
 clean:
Index: trunk/zoo-project/zoo-services/qrencode/qrenc-service.c
===================================================================
--- trunk/zoo-project/zoo-services/qrencode/qrenc-service.c	(revision 536)
+++ trunk/zoo-project/zoo-services/qrencode/qrenc-service.c	(revision 743)
@@ -25,8 +25,10 @@
 # include "config.h"
 #endif
+#include "string.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <png.h>
 #include <getopt.h>
+#include "qrencode.h"
 
 #ifdef ZOO_SERVICE_PROVIDER
@@ -41,5 +43,4 @@
 #endif
 
-#include "qrencode.h"
 
 #define INCHES_PER_METER (100.0/2.54)
