diff --git a/icc/makefile.mk b/icc/makefile.mk
index 5542db030ce6..abd8b59165a1 100644
--- a/icc/makefile.mk
+++ b/icc/makefile.mk
@@ -54,7 +54,7 @@ CONVERTFILES= \
Contrib$/ICC_utils$/Stubs.h \
Contrib$/ICC_utils$/Vetters.cpp
-CONFIGURE_ACTION= $(GNUCOPY) -r $(BACK_PATH)..$/source$/create_sRGB_profile Contrib$/CmdLine && unzip $(BACK_PATH)..$/makefiles.zip
+CONFIGURE_ACTION= $(GNUCOPY) -r $(BACK_PATH)..$/source$/create_sRGB_profile Contrib$/CmdLine && unzip -o $(BACK_PATH)..$/makefiles.zip
BUILD_ACTION=dmake && cd Contrib$/CmdLine$/create_sRGB_profile && $(AUGMENT_LIBRARY_PATH) .$/create_sRGB_profile
# --- Targets ------------------------------------------------------
diff --git a/redland/redland/makefile.mk b/redland/redland/makefile.mk
index bb9fe2033ad2..927f9868b10d 100644
--- a/redland/redland/makefile.mk
+++ b/redland/redland/makefile.mk
@@ -107,8 +107,8 @@ CFLAGS=-m64
.ENDIF
# NB: SOLARDIR before SYSBASE, because linux SYSBASE contains obsolete libcrypto
-CPPFLAGS+:=-I$(SOLARINCDIR)$/external
-LDFLAGS+:=-L$(SOLARLIBDIR)
+CPPFLAGS+:=-I$(PWD)$/$(INCCOM) -I$(SOLARINCDIR)$/external
+LDFLAGS+:=-L$(PWD)$/$(LB) -L$(SOLARLIBDIR)
.IF "$(SYSBASE)"!=""
CPPFLAGS+:=-I$(SYSBASE)$/usr$/include
diff --git a/rhino/makefile.mk b/rhino/makefile.mk
index 24517b6dafd7..0809007ea7b4 100755
--- a/rhino/makefile.mk
+++ b/rhino/makefile.mk
@@ -48,7 +48,8 @@ TARFILE_ROOTDIR=rhino1_5R5
ADDITIONAL_FILES= \
toolsrc/org/mozilla/javascript/tools/debugger/OfficeScriptInfo.java
-PATCH_FILES=rhino1_5R5.patch
+PATCH_FILES=rhino1_5R5.patch \
+ rhino1_5R5-find_swing.patch
.IF "$(JAVACISGCJ)"=="yes"
JAVA_HOME=
diff --git a/rhino/rhino1_5R5-find_swing.patch b/rhino/rhino1_5R5-find_swing.patch
new file mode 100644
index 000000000000..e94974a41574
--- /dev/null
+++ b/rhino/rhino1_5R5-find_swing.patch
@@ -0,0 +1,22 @@
+--- misc/rhino1_5R5/toolsrc/build.xml 2009-10-29 18:29:46.605524507 +0100
++++ misc/build/rhino1_5R5/toolsrc/build.xml 2009-10-29 18:29:26.536908810 +0100
+@@ -12,6 +12,10 @@
+
+
+
++
++
++
++
+
+
+
+@@ -38,7 +42,7 @@
+
+-
++
+
+
+