Fix Windows build again but with an ifdef
In response to 608c9f81. There is no better fix for handling WId's for Windows and Linux, on Windows a WId is a pointer which makes casting to / from int necessary. It's done in other places in kdelibs / kdepim already with an ifdef around it.