Backport Ade's FreeBSD build fixes from HEAD
Backport Ade's FreeBSD build fixes from HEAD

svn path=/branches/KDE_3_3_BRANCH/kdepim/; revision=352786

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi