Index: src/include/ctl/ctlSQLResult.h
===================================================================
--- src/include/ctl/ctlSQLResult.h	(revision 5210)
+++ src/include/ctl/ctlSQLResult.h	(working copy)
@@ -65,7 +65,7 @@
     int RunStatus();
     wxString GetMessagesAndClear();
     wxString GetErrorMessage();
-    pgError ctlSQLResult::GetResultError();
+    pgError GetResultError();
 
 	void DisplayData(bool single=false);
 
Index: src/include/ctl/ctlSQLGrid.h
===================================================================
--- src/include/ctl/ctlSQLGrid.h	(revision 5210)
+++ src/include/ctl/ctlSQLGrid.h	(working copy)
@@ -28,8 +28,8 @@
     int Copy();
 
     virtual bool CheckRowPresent(int row) { return true; }
-    wxSize ctlSQLGrid::GetBestSize(int row, int col);
-    void ctlSQLGrid::OnLabelDoubleClick(wxGridEvent& event);
+    wxSize GetBestSize(int row, int col);
+    void OnLabelDoubleClick(wxGridEvent& event);
 };
 
 #endif
Index: src/frm/frmReport.cpp
===================================================================
--- src/frm/frmReport.cpp	(revision 5210)
+++ src/frm/frmReport.cpp	(working copy)
@@ -29,6 +29,9 @@
 #include "pgColumn.h"
 #include "pgConstraints.h"
 #include "pgaJob.h"
+#include "pgForeignKey.h"
+#include "pgIndexConstraint.h"
+#include "pgCheck.h"
 
 // XML2/XSLT headers
 #include <libxml/xmlmemory.h>
