Index: Makefile.in
--- Makefile.in.orig	2008-02-11 11:29:53.000000000 +0100
+++ Makefile.in	2012-05-30 12:19:11.000000000 +0200
@@ -34,7 +34,7 @@
 CFLAGS = @CFLAGS@
 ALL_CFLAGS = $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
 LDFLAGS = @LDFLAGS@
-LIBS = @LIBS@ @NEON_LIBS@
+LIBS = @NEON_LIBS@ @LIBS@
 
 TARGET = $(PACKAGE)
 SUBDIRS = lib/neon lib/intl
@@ -56,7 +56,7 @@
 .PHONY: subdirs install clean distclean
 
 $(TARGET): $(ALLOBJS) subdirs
-	$(CC) $(LDFLAGS) -o $(TARGET) $(ALLOBJS) $(LIBS)
+	$(CC) -o $(TARGET) $(ALLOBJS) $(LDFLAGS) $(LIBS)
 
 .c.o:
 	$(CC) $(ALL_CFLAGS) -o $@ -c $<
Index: src/cadaver.c
--- src/cadaver.c.orig	2008-10-29 10:35:33.000000000 +0100
+++ src/cadaver.c	2012-05-30 12:19:11.000000000 +0200
@@ -855,7 +855,7 @@
 
     progname = argv[0];
 
-#ifdef HAVE_SETLOCALE
+#if defined(HAVE_SETLOCALE) && defined(HAVE_LOCALE_H)
     setlocale(LC_ALL, "");
 #endif
 
Index: src/commands.c
--- src/commands.c.orig	2008-11-11 09:40:54.000000000 +0100
+++ src/commands.c	2012-05-30 12:19:40.000000000 +0200
@@ -1328,7 +1328,7 @@
       "showlocks", N_("Display list of owned locks") },
 
     /*** DeltaV commands ***/
-    C1(version, N_("verrsion resource"), N_("Place given resource under version control")),
+    C1(version, N_("version resource"), N_("Place given resource under version control")),
     C1(checkin, N_("checkin resource"), N_("Checkin given resource")),
     C1(checkout, N_("checkout resource"), N_("Checkout given resource")),
     C1(uncheckout, N_("uncheckin resource"), N_("Uncheckout given resource")),
