Add also missing <stdlib.h> where required.
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/fl_draw.H>
+#include <FL/x.H>
#include <rdr/Exception.h>
#include <rfb/util.h>
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Button.H>
+#include <FL/x.H>
#if defined(HAVE_XRANDR) && !defined(__APPLE__)
#include <X11/extensions/Xrandr.h>
#include <map>
#include <set>
-class Fl_Group;
+#include <FL/Fl_Group.H>
+
class Fl_Button;
class MonitorArrangement: public Fl_Group {
#endif
#include <assert.h>
+#include <stdlib.h>
#if !defined(WIN32) && !defined(__APPLE__)
#include <sys/ipc.h>
#endif
#include <assert.h>
+#include <stdlib.h>
#include <FL/Fl_RGB_Image.H>
#include <FL/x.H>
#include <FL/Fl_Menu.H>
#include <FL/Fl_Menu_Button.H>
+#include <FL/x.H>
#if !defined(WIN32) && !defined(__APPLE__)
#include <X11/XKBlib.h>