Fix some gcc 4.0 warnings.

diff --git a/server/thread.c b/server/thread.c
index b035bb9..e314314 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -734,8 +734,8 @@
     {
         unsigned char flags_buf[4];
         int *addr = (int *)thread->process->ldt_copy + entry;
-        if (read_thread_int( thread, addr, base ) == -1) goto done;
-        if (read_thread_int( thread, addr + 8192, limit ) == -1) goto done;
+        if (read_thread_int( thread, addr, (int *)base ) == -1) goto done;
+        if (read_thread_int( thread, addr + 8192, (int *)limit ) == -1) goto done;
         addr = (int *)thread->process->ldt_copy + 2*8192 + (entry >> 2);
         if (read_thread_int( thread, addr, (int *)flags_buf ) == -1) goto done;
         *flags = flags_buf[entry & 3];