The problem was resolved
It seems to apply to compiling kdepimlibs with msvc2010 (mingw is ok but fails else where)
The problem is QT_NO_CAST_FROM_ASCII is defined.
There was a patch that was meant for the 4.10.2 tag of the 4.10 branch but it never seemed to have been added to the repository
The patch can be found here https://bugs.kde.org/attachment.cgi?id=79049
Apply the patch to the KDE/4.10 branch and it will compile