Fixed few compilations issues (thanks to kopete team)