Try to fix compile on Windows, and be paranoid with the snprintf()
svn path=/branches/kdepim/enterprise4/kdepimlibs/; revision=816596