Index: trunk/src/gl/gl_device.cc
===================================================================
--- trunk/src/gl/gl_device.cc	(revision 116)
+++ trunk/src/gl/gl_device.cc	(revision 120)
@@ -74,4 +74,9 @@
 	load_sdl_image_library();
 	SDL_Surface* image = IMG_Load( filename.c_str() );
+	if (!image)
+	{
+		NV_LOG( LOG_ERROR, "Image file " << filename.c_str() << " not found!" );
+		return nullptr;
+	}
 	image_data* data = new image_data( glm::ivec2( image->w, image->h ), image->format->BytesPerPixel, (nv::uint8*)image->pixels );
 	return data;
Index: trunk/src/gui/gui_element.cc
===================================================================
--- trunk/src/gui/gui_element.cc	(revision 116)
+++ trunk/src/gui/gui_element.cc	(revision 120)
@@ -27,4 +27,5 @@
 		}
 	}
+	//((environment*)m_root)->update( this, elapsed );
 }
 
@@ -90,5 +91,5 @@
 	}
 
-	m_absolute = m_relative + pabsolute.upper_left;
+	m_absolute = m_relative + pabsolute.ul;
 
 	for ( object* o : *this )
Index: trunk/src/library.cc
===================================================================
--- trunk/src/library.cc	(revision 116)
+++ trunk/src/library.cc	(revision 120)
@@ -115,5 +115,5 @@
 #if NV_PLATFORM == NV_WINDOWS
     // We do hate WinAPI for code like this, don't we?
-    LPVOID buffer;
+    LPTSTR buffer = NULL;
     FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
         NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &buffer, 0, NULL );
Index: trunk/src/object.cc
===================================================================
--- trunk/src/object.cc	(revision 116)
+++ trunk/src/object.cc	(revision 120)
@@ -7,4 +7,5 @@
 #include "nv/object.hh"
 
+#include <algorithm>
 #include "nv/root.hh"
 #include "nv/types.hh"
