[WIN32] buildsystem fixes

I'll commit in a second when jenkins worked fine