Fixed some warnings.

diff --git a/if1632/relay.c b/if1632/relay.c
index ede3cd8..7076d2e 100644
--- a/if1632/relay.c
+++ b/if1632/relay.c
@@ -17,6 +17,7 @@
 #include "syslevel.h"
 #include "debugtools.h"
 #include "main.h"
+#include "callback.h"
 
 DEFAULT_DEBUG_CHANNEL(relay);
 
diff --git a/misc/ddeml.c b/misc/ddeml.c
index 56f5f6a..b168370 100644
--- a/misc/ddeml.c
+++ b/misc/ddeml.c
@@ -910,7 +910,7 @@
 HCONVLIST WINAPI DdeConnectList( DWORD idInst, HSZ hszService, HSZ hszTopic,
                  HCONVLIST hConvList, LPCONVCONTEXT pCC )
 {
-    FIXME("(%ld,%ld,%ld,%ld,%p): stub\n", idInst, hszService, hszTopic,
+    FIXME("(%ld,%d,%d,%d,%p): stub\n", idInst, hszService, hszTopic,
           hConvList,pCC);
     return 1;
 }
@@ -930,7 +930,7 @@
  */
 HCONV WINAPI DdeQueryNextServer( HCONVLIST hConvList, HCONV hConvPrev )
 {
-    FIXME("(%ld,%ld): stub\n",hConvList,hConvPrev);
+    FIXME("(%d,%d): stub\n",hConvList,hConvPrev);
     return 0;
 }
 
@@ -954,7 +954,7 @@
     DDE_HANDLE_ENTRY *reference_inst;
 
     FIXME(
-         "(%ld, 0x%lx, %p, %ld, %d): partial stub\n",
+         "(%ld, 0x%x, %p, %ld, %d): partial stub\n",
          idInst,
          hsz,
          psz, 
@@ -1025,7 +1025,7 @@
     int factor = 1;
 
     FIXME(
-         "(%ld, 0x%lx, %p, %ld, %d): stub\n",
+         "(%ld, 0x%x, %p, %ld, %d): stub\n",
          idInst,
          hsz,
          psz, 
@@ -1066,7 +1066,7 @@
 
 DWORD WINAPI DdeQueryString16(DWORD idInst, HSZ hsz, LPSTR lpsz, DWORD cchMax, INT16 codepage)
 {
-	FIXME("(%ld, 0x%lx, %p, %ld, %d): stub \n", 
+	FIXME("(%ld, 0x%x, %p, %ld, %d): stub \n", 
          idInst,
          hsz,
          lpsz, 
@@ -1095,7 +1095,7 @@
 BOOL WINAPI DdeDisconnectList(
     HCONVLIST hConvList) /* [in] Handle to conversation list */
 {
-    FIXME("(%ld): stub\n", hConvList);
+    FIXME("(%d): stub\n", hConvList);
     return TRUE;
 }
 
@@ -1117,7 +1117,7 @@
 HCONV WINAPI DdeConnect( DWORD idInst, HSZ hszService, HSZ hszTopic,
                            LPCONVCONTEXT pCC )
 {
-    FIXME("(0x%lx,%ld,%ld,%p): stub\n",idInst,hszService,hszTopic,
+    FIXME("(0x%lx,%d,%d,%p): stub\n",idInst,hszService,hszTopic,
           pCC);
     return 0;
 }
@@ -1136,7 +1136,7 @@
  */
 BOOL16 WINAPI DdeSetUserHandle16( HCONV hConv, DWORD id, DWORD hUser )
 {
-    FIXME("(%ld,%ld,%ld): stub\n",hConv,id, hUser );
+    FIXME("(%d,%ld,%ld): stub\n",hConv,id, hUser );
     return 0;
 }
 
@@ -1164,7 +1164,7 @@
                                        UINT afCmd )
 {
     FIXME(
-          "(%ld,%p,%ld,%ld,0x%lx,%d,%d): stub\n",
+          "(%ld,%p,%ld,%ld,0x%x,%d,%d): stub\n",
           idInst,
           pSrc,
           cb,
@@ -1276,7 +1276,7 @@
       /* Save the handle so we know to clean it when
        * uninitialize is called.
        */
-      TRACE("added atom %s with HSZ 0x%lx, \n",debugstr_a(psz),hsz);
+      TRACE("added atom %s with HSZ 0x%x, \n",debugstr_a(psz),hsz);
       InsertHSZNode( hsz, reference_inst );
       if ( Release_reserved_mutex(handle_mutex,"handle_mutex",FALSE,FALSE,reference_inst)) 
 	{
@@ -1378,7 +1378,7 @@
  */
 BOOL16 WINAPI DdeFreeStringHandle16( DWORD idInst, HSZ hsz )
 {
-	FIXME("idInst %ld hsz 0x%lx\n",idInst,hsz);
+	FIXME("idInst %ld hsz 0x%x\n",idInst,hsz);
     return (BOOL)DdeFreeStringHandle( idInst, hsz );
 }
 
@@ -1401,7 +1401,7 @@
 BOOL WINAPI DdeFreeStringHandle( DWORD idInst, HSZ hsz )
 {
     DDE_HANDLE_ENTRY *reference_inst;
-    TRACE("(%ld,%ld): \n",idInst,hsz);
+    TRACE("(%ld,%d): \n",idInst,hsz);
   if ( DDE_Max_Assigned_Instance == 0 )
 {
           /*  Nothing has been initialised - exit now ! can return TRUE since effect is the same */
@@ -1486,7 +1486,7 @@
 {
 
   DDE_HANDLE_ENTRY *reference_inst;
-  TRACE("(%ld,%ld): \n",idInst,hsz);
+  TRACE("(%ld,%d): \n",idInst,hsz);
   if ( DDE_Max_Assigned_Instance == 0 )
   {
           /*  Nothing has been initialised - exit now ! can return FALSE since effect is the same */
@@ -1595,7 +1595,7 @@
     HSZ hszTopic, /* [in] Handle to topic name string */
     HSZ hszItem)  /* [in] Handle to item name string */
 {
-    FIXME("(%ld,%ld,%ld): stub\n",idInst,hszTopic,hszItem);
+    FIXME("(%ld,%d,%d): stub\n",idInst,hszTopic,hszItem);
     return TRUE;
 }
 
@@ -1701,7 +1701,7 @@
     DWORD cbMax,    /* [in] Amount of data to copy */
     DWORD cbOff)    /* [in] Offset to beginning of data */
 {
-    FIXME("(%ld,%p,%ld,%ld): stub\n",hData,pDst,cbMax,cbOff);
+    FIXME("(%d,%p,%ld,%ld): stub\n",hData,pDst,cbMax,cbOff);
     return cbMax;
 }
 
@@ -1732,7 +1732,7 @@
  */
 LPBYTE WINAPI DdeAccessData( HDDEDATA hData, LPDWORD pcbDataSize )
 {
-     FIXME("(%ld,%p): stub\n", hData, pcbDataSize);
+     FIXME("(%d,%p): stub\n", hData, pcbDataSize);
      return 0;
 }
 
@@ -1749,7 +1749,7 @@
  */
 BOOL WINAPI DdeUnaccessData( HDDEDATA hData )
 {
-     FIXME("(0x%lx): stub\n", hData);
+     FIXME("(0x%x): stub\n", hData);
 
      return 0;
 }
@@ -1767,7 +1767,7 @@
  */
 BOOL WINAPI DdeEnableCallback( DWORD idInst, HCONV hConv, UINT wCmd )
 {
-     FIXME("(%ld, 0x%lx, %d) stub\n", idInst, hConv, wCmd);
+     FIXME("(%ld, 0x%x, %d) stub\n", idInst, hConv, wCmd);
 
      return 0;
 }
@@ -1816,7 +1816,7 @@
   DDE_HANDLE_ENTRY *reference_inst;
   this_service = NULL;
 
-  FIXME("(%ld,%ld,%ld,%d): stub\n",idInst,hsz1,hsz2,afCmd);
+  FIXME("(%ld,%d,%d,%d): stub\n",idInst,hsz1,hsz2,afCmd);
 
   if ( DDE_Max_Assigned_Instance == 0 )
   {
diff --git a/server/registry.c b/server/registry.c
index 2ad6a15..6d6b034 100644
--- a/server/registry.c
+++ b/server/registry.c
@@ -1424,7 +1424,7 @@
     else p = tmp;
     for (;;)
     {
-        sprintf( p, "reg%x%04x.tmp", getpid(), count++ );
+        sprintf( p, "reg%lx%04x.tmp", (long) getpid(), count++ );
         if ((fd = open( tmp, O_CREAT | O_EXCL | O_WRONLY, 0666 )) != -1) break;
         if (errno != EEXIST) goto done;
         close( fd );