  //for explicit overrides
  #ifdef _MSC_VER
  	#define OVERRIDE override
+Index: Scripting/ERM/ERMParser.cpp
+===================================================================
+--- Scripting/ERM/ERMParser.cpp	(revision 2220)
++++ Scripting/ERM/ERMParser.cpp	(working copy)
+@@ -2,7 +2,7 @@
+ #include <boost/version.hpp>
+ //To make compilation with older boost versions possible
+ //Don't know exact version - 1.46 works while 1.42 not
+-#if BOOST_VERSION >= 104600
++#if BOOST_VERSION >= 104500
+ 
+ #include <boost/spirit/include/qi.hpp>
+ #include <boost/bind.hpp>
 Index: client/Graphics.cpp
 ===================================================================
---- client/Graphics.cpp	(revision 2183)
+--- client/Graphics.cpp	(revision 2220)
 +++ client/Graphics.cpp	(working copy)
 @@ -333,8 +333,15 @@
  		tasks += GET_SURFACE(backgroundsm[id],name);

 	{
 		memset((void *)position, color, size);
 		position += size;
Index: client/GUIBase.h
===================================================================
--- client/GUIBase.h	(revision 2183)
+++ client/GUIBase.h	(working copy)
@@ -546,6 +546,8 @@
 	CGuiHandler();

 		int group = readNormalNr<4>(i,FDef); i+=4; //block ID
 		totalInBlock = readNormalNr<4>(i,FDef); i+=4;
@@ -76,6 +85,7 @@
 		/*int unknown2 = readNormalNr<4>(i,FDef);*/ i+=4; //TODO use me
 		/*int unknown3 = readNormalNr<4>(i,FDef);*/ i+=4; //TODO use me
 		i+=13*totalInBlock; //ommiting names
+		CHECK_LOD_MEM_BLOCK_SIZE(i+totalInBlock*4);
 		for (j=0; j<totalInBlock; j++)
