Index: utils.cpp
--- utils.cpp.orig
+++ utils.cpp
@@ -101,8 +101,8 @@ int gettimeofday(struct timeval* tp)
 void drawWallpaper(const std::wstring &name)
 {
     SDL_Surface *tile = loadImage(name);
-    SDL_Rect src = { 0, 0, tile->w, tile->h };
-    SDL_Rect dst = { 0, 0, tile->w, tile->h };
+    SDL_Rect src = { 0, 0, static_cast<Uint16>(tile->w), static_cast<Uint16>(tile->h) };
+    SDL_Rect dst = { 0, 0, static_cast<Uint16>(tile->w), static_cast<Uint16>(tile->h) };
     for (int y = 0; y < screen.getHeight(); y += tile->h)
         for (int x = 0; x < screen.getWidth(); x += tile->w) {
             dst.x = x;
@@ -275,7 +275,16 @@ std::wstring secToStr(int time)
 #ifdef WIN32
     swprintf(buf, L"%02i:%02i:%02i", hours, minutes, seconds);
 #else
-    swprintf(buf, 50, L"%02i:%02i:%02i", hours, minutes, seconds);
+    int  c, i;
+    char buf2 [50];
+
+    c = snprintf (buf2, sizeof (buf2), "%02i:%02i:%02i", hours, minutes,
+        seconds);
+
+    for (i = 0; i < c; ++i) {
+        buf [i] = (wchar_t) buf2 [i];
+    }
+    buf [i] = L'\0';
 #endif
 
     return buf;
