diff --git a/build.sh b/build.sh
index c5c402f7933ace776218fb0e2c7906d1ad6135a6..e01d81f2d7a7c0ba0712764a756fa3d5b28d9f86 100755
--- a/build.sh
+++ b/build.sh
@@ -156,7 +156,7 @@ prepare_generic()
 		svn update >> $LOGFILE  2>&1 || failure
 	else
 		echo "Retrieving BOINC (this may take a while)..." | tee -a $LOGFILE
-		svn checkout http://boinc.berkeley.edu/svn/trunk/boinc . >> $LOGFILE 2>&1 || failure
+		svn checkout http://boinc.berkeley.edu/svn/branches/boinc_core_release_6_2 . >> $LOGFILE 2>&1 || failure
 	fi
 
 	return 0
@@ -316,7 +316,6 @@ build_generic_win32()
 	cd $ROOT/3rdparty/boinc/lib || failure
 	# patch: fix a couple of BOINC vs. MinGW issues
 	patch boinc_win.h < $ROOT/patches/boinc.boinc_win.h.minggw.patch >> $LOGFILE 2>&1 || failure
-	patch stackwalker_win.cpp < $ROOT/patches/boinc.stackwalker_win.cpp.minggw.patch >> $LOGFILE 2>&1 || failure
 	patch filesys.C < $ROOT/patches/boinc.filesys.C.mingw.patch >> $LOGFILE 2>&1 || failure
 	# patch: add graphics2 and customize build path (see below)
 	echo "Building BOINC (this may take a while)..." | tee -a $LOGFILE
@@ -332,19 +331,19 @@ build_generic_win32()
 	cd $ROOT/build/boinc || failure
 	make -f api/Makefile.mingw >> $LOGFILE 2>&1 || failure
 	cp $ROOT/build/boinc/libboinc.a $ROOT/install/lib >> $LOGFILE 2>&1 || failure
-	mkdir -p $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/api/boinc_api.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/api/graphics2.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/app_ipc.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/boinc_win.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/common_defs.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/hostinfo.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/proxy_info.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/prefs.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/miofile.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/mfile.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/parse.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
-	cp $ROOT/3rdparty/boinc/lib/util.h $ROOT/install/include/boinc >> $LOGFILE 2>&1 || failure
+	mkdir -p $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/api/boinc_api.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/api/graphics2.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/app_ipc.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/boinc_win.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/common_defs.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/hostinfo.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/proxy_info.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/prefs.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/miofile.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/mfile.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/parse.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
+	cp $ROOT/3rdparty/boinc/lib/util.h $ROOT/install/include/BOINC >> $LOGFILE 2>&1 || failure
 	echo "Successfully built and installed BOINC!" | tee -a $LOGFILE
 }
 
diff --git a/patches/boinc.stackwalker_win.cpp.minggw.patch b/patches/boinc.stackwalker_win.cpp.minggw.patch
deleted file mode 100644
index 3c135a031684a84a8066372ced934fe0713c632a..0000000000000000000000000000000000000000
--- a/patches/boinc.stackwalker_win.cpp.minggw.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- stackwalker_win.cpp
-+++ stackwalker_win.cpp	2008-06-03 17:37:38.000000000 +0200
-@@ -353,7 +353,7 @@
-     }
-     _ftprintf(stderr, _T("(%s Symbols Loaded)")                   , szSymbolType);
-     _ftprintf(stderr, _T("\n"));
--    _ftprintf(stderr, _T("    Linked PDB Filename   : %s\n")      , Module.CVData);
-+//     _ftprintf(stderr, _T("    Linked PDB Filename   : %s\n")      , Module.CVData);
-     if (bFileVersionSupported && bFileVersionRetrieved) {
-         _ftprintf(stderr, _T("    File Version          : %s\n")  , szFileVersion);
-         _ftprintf(stderr, _T("    Company Name          : %s\n")  , szCompanyName);
-@@ -657,7 +657,7 @@
- // #################################################################################
- // Here the Stackwalk-Part begins.
- //   Some of the code is from an example from a book 
--//   But I couldn�t find the reference anymore... sorry...
-+//   But I couldn�t find the reference anymore... sorry...
- //   If someone knowns, please let me know...
- // #################################################################################
- // #################################################################################
diff --git a/src/framework/Makefile b/src/framework/Makefile
index 6bc64f1dd36060066531b49d5fd61628042b8fcb..02108c0548f41a57c1761cf21b57b3840284b590 100644
--- a/src/framework/Makefile
+++ b/src/framework/Makefile
@@ -28,7 +28,7 @@ CXX?=g++
 # variables
 CPPFLAGS = $(shell $(FRAMEWORK_INSTALL)/bin/sdl-config --cflags)
 CPPFLAGS += $(shell $(FRAMEWORK_INSTALL)/bin/freetype-config --cflags)
-CPPFLAGS += -I$(FRAMEWORK_INSTALL)/include/boinc -I/usr/include
+CPPFLAGS += -I$(FRAMEWORK_INSTALL)/include/BOINC -I/usr/include
 
 DEPS = Makefile
 OBJS = AbstractGraphicsEngine.o GraphicsEngineFactory.o WindowManager.o Resource.o ResourceFactory.o BOINCClientAdapter.o
diff --git a/src/framework/Makefile.mingw b/src/framework/Makefile.mingw
index 6b0b140a3f4d6331a71c70be1ef457f1734a1d62..44a4769e1c51a1ea97b2a1ed4d615b997b87012c 100644
--- a/src/framework/Makefile.mingw
+++ b/src/framework/Makefile.mingw
@@ -28,7 +28,7 @@ CXX?=g++
 # variables
 CPPFLAGS = $(shell $(FRAMEWORK_INSTALL)/bin/sdl-config --cflags)
 CPPFLAGS += $(shell $(FRAMEWORK_INSTALL)/bin/freetype-config --cflags)
-CPPFLAGS += -I$(FRAMEWORK_INSTALL)/include/boinc -I$(FRAMEWORK_INSTALL)/include
+CPPFLAGS += -I$(FRAMEWORK_INSTALL)/include/BOINC -I$(FRAMEWORK_INSTALL)/include
 
 DEPS = Makefile
 OBJS = AbstractGraphicsEngine.o GraphicsEngineFactory.o WindowManager.o Resource.o ResourceFactory.o BOINCClientAdapter.o
diff --git a/src/starsphere/Makefile b/src/starsphere/Makefile
index 7462c0245c495be015d341a14194aa1615eb725d..53da9b3d7f50f8540cd5b21779cdbd663b0e8011 100644
--- a/src/starsphere/Makefile
+++ b/src/starsphere/Makefile
@@ -34,7 +34,7 @@ LIBS += -Wl,-Bdynamic $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --static-libs
 CPPFLAGS = -I$(STARSPHERE_INSTALL)/include
 CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --cflags)
 CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/freetype-config --cflags)
-CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/boinc -I/usr/include
+CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/BOINC -I/usr/include
 
 DEPS = Makefile
 OBJS = Starsphere.o StarsphereS5R3.o EinsteinS5R3Adapter.o starlist.o snr_list.o pulsar_list.o $(RESOURCESPEC).o
diff --git a/src/starsphere/Makefile.macos b/src/starsphere/Makefile.macos
index 36d52a82171b8da329cfcce282137f819756e4a0..8627bea44b9e3f11c354d61c31ac366fbfae24d2 100644
--- a/src/starsphere/Makefile.macos
+++ b/src/starsphere/Makefile.macos
@@ -34,7 +34,7 @@ LIBS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --static-libs)
 CPPFLAGS = -I$(STARSPHERE_INSTALL)/include
 CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --cflags)
 CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/freetype-config --cflags)
-CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/boinc -I/usr/include
+CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/BOINC -I/usr/include
 
 DEPS = Makefile
 OBJS = Starsphere.o StarsphereS5R3.o EinsteinS5R3Adapter.o starlist.o snr_list.o pulsar_list.o $(RESOURCESPEC).o
diff --git a/src/starsphere/Makefile.mingw b/src/starsphere/Makefile.mingw
index 57828dcd04784a5c512969e9da2f24f6ae562023..717f689ceceb472bae9c55ebdd7236a962a5bd52 100644
--- a/src/starsphere/Makefile.mingw
+++ b/src/starsphere/Makefile.mingw
@@ -34,7 +34,7 @@ LIBS += -Wl,-Bdynamic $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --static-libs
 CPPFLAGS = -I$(STARSPHERE_INSTALL)/include
 CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/sdl-config --cflags)
 CPPFLAGS += $(shell $(STARSPHERE_INSTALL)/bin/freetype-config --cflags)
-CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/boinc
+CPPFLAGS += -I$(STARSPHERE_INSTALL)/include/BOINC
 
 DEPS = Makefile
 OBJS = Starsphere.o StarsphereS5R3.o EinsteinS5R3Adapter.o starlist.o snr_list.o pulsar_list.o $(RESOURCESPEC).o