Index: trunk/src/shared/Database/DBCfmt.cpp
===================================================================
--- trunk/src/shared/Database/DBCfmt.cpp (revision 2)
+++ trunk/src/shared/Database/DBCfmt.cpp (revision 6)
@@ -61,5 +61,5 @@
 const char SpellCastTimefmt[]="nixx";
 const char SpellDurationfmt[]="niii";
-const char SpellEntryfmt[]="nixiiiiiiiixiiiiixiiiiiiiiiiiiiiiiiiiiiiifxiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiffffffiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiifffixiixssssssssssssssssxssssssssssssssssxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiiiiiiiiiixfffxxxiiii";
+const char SpellEntryfmt[]="nixiiiiiiiixiiiiiiiiiiiiiiiiiiiiiiiiiiiiifxiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiffffffiiiiiiiiiiiiiiiiiiiiifffiiiiiiiiiiiiiiifffixiixssssssssssssssssxssssssssssssssssxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxiiiiiiiiiixfffxxxiiii";
 const char SpellFocusObjectfmt[]="nxxxxxxxxxxxxxxxxx";
 const char SpellItemEnchantmentfmt[]="niiiiiixxxiiissssssssssssssssxiiii";
Index: trunk/src/shared/Database/DatabaseEnv.h
===================================================================
--- trunk/src/shared/Database/DatabaseEnv.h (revision 2)
+++ trunk/src/shared/Database/DatabaseEnv.h (revision 6)
@@ -35,4 +35,5 @@
 #define _LIKE_          "ILIKE"
 #define _TABLE_SIM_     "\""
+#define _CONCAT3_(A,B,C) "( " A " || " B " || " C " )"
 #else
 #include "Database/QueryResultMysql.h"
@@ -44,4 +45,5 @@
 #define _LIKE_          "LIKE"
 #define _TABLE_SIM_     "`"
+#define _CONCAT3_(A,B,C) "CONCAT( " A " , " B " , " C " )"
 #endif
 
Index: trunk/src/shared/Database/DBCStructure.h
===================================================================
--- trunk/src/shared/Database/DBCStructure.h (revision 2)
+++ trunk/src/shared/Database/DBCStructure.h (revision 6)
@@ -596,5 +596,5 @@
     uint32    TargetCreatureType;                           // 15
     uint32    RequiresSpellFocus;                           // 16
-    //uint32    FacingCasterFlags;                          // 17 not used
+    uint32    FacingCasterFlags;                            // 17
     uint32    CasterAuraState;                              // 18
     uint32    TargetAuraState;                              // 19
Index: trunk/src/shared/Timer.h
===================================================================
--- trunk/src/shared/Timer.h (revision 2)
+++ trunk/src/shared/Timer.h (revision 6)
@@ -23,5 +23,5 @@
 
 #if PLATFORM == PLATFORM_WINDOWS
-#   include <windows.h>
+#   include <ace/config-all.h>
 #   include <mmsystem.h>
 #   include <time.h>
Index: trunk/src/shared/Makefile.am
===================================================================
--- trunk/src/shared/Makefile.am (revision 2)
+++ trunk/src/shared/Makefile.am (revision 6)
@@ -31,4 +31,6 @@
 $(POSTGRE_INCLUDES) \
 -I$(top_srcdir)/dep/include \
+-I$(top_srcdir)/dep/ACE_wrappers \
+-I$(top_builddir)/dep/ACE_wrappers \
 -I$(top_srcdir)/src/framework
 
Index: trunk/src/shared/Common.h
===================================================================
--- trunk/src/shared/Common.h (revision 2)
+++ trunk/src/shared/Common.h (revision 6)
@@ -20,4 +20,42 @@
 #define MANGOSSERVER_COMMON_H
 
+// config.h needs to be included 1st
+// TODO this thingy looks like hack ,but its not, need to
+// make separate header however, because It makes mess here.
+#ifdef HAVE_CONFIG_H
+// Remove Some things that we will define 
+// This is in case including another config.h 
+// before trinity config.h 
+#ifdef PACKAGE
+#undef PACKAGE
+#endif //PACKAGE
+#ifdef PACKAGE_BUGREPORT
+#undef PACKAGE_BUGREPORT
+#endif //PACKAGE_BUGREPORT
+#ifdef PACKAGE_NAME
+#undef PACKAGE_NAME
+#endif //PACKAGE_NAME
+#ifdef PACKAGE_STRING
+#undef PACKAGE_STRING
+#endif //PACKAGE_STRING
+#ifdef PACKAGE_TARNAME
+#undef PACKAGE_TARNAME
+#endif //PACKAGE_TARNAME
+#ifdef PACKAGE_VERSION
+#undef PACKAGE_VERSION
+#endif //PACKAGE_VERSION
+#ifdef VERSION
+#undef VERSION
+#endif //VERSION
+# include "config.h"
+#undef PACKAGE
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_VERSION
+#undef VERSION
+#endif //HAVE_CONFIG_H
+
 #include "Platform/Define.h"
 
@@ -43,8 +81,4 @@
 #endif                                                      // __SHOW_STUPID_WARNINGS__
 #endif                                                      // __GNUC__
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
 
 #include "Utilities/HashMap.h"
@@ -77,6 +111,6 @@
 
 #if PLATFORM == PLATFORM_WINDOWS
-#  define FD_SETSIZE 1024
-#  include <winsock2.h>
+#  define FD_SETSIZE 4096
+#  include <ace/config-all.h>
 // XP winver - needed to compile with standard leak check in MemoryLeaks.h
 // uncomment later if needed
