Index: src/compile.c
--- src/compile.c.orig	2011-04-05 20:58:58.000000000 +0200
+++ src/compile.c	2011-10-27 20:24:32.000000000 +0200
@@ -813,7 +813,7 @@
 
         rs_log(RS_LOG_INFO|RS_LOG_NONAME,
                "elapsed compilation time %ld.%06lds",
-               delta.tv_sec, (long) delta.tv_usec);
+               (long int) delta.tv_sec, (long int) delta.tv_usec);
     }
 
     return ret;
Index: src/exec.c
--- src/exec.c.orig	2011-04-05 20:58:58.000000000 +0200
+++ src/exec.c	2011-10-27 20:29:07.000000000 +0200
@@ -492,9 +492,9 @@
             rs_log_info("%s times: user %ld.%06lds, system %ld.%06lds, "
                         "%ld minflt, %ld majflt",
                         what,
-                        ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec,
-                        ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec,
-                        ru.ru_minflt, ru.ru_majflt);
+                        (long int) ru.ru_utime.tv_sec, (long int) ru.ru_utime.tv_usec,
+                        (long int) ru.ru_stime.tv_sec, (long int) ru.ru_stime.tv_usec,
+                        (long int) ru.ru_minflt, (long int) ru.ru_majflt);
 
             return 0;
         }
