Qtcore hacks

3 hacks, explained in the commit message, needed to reach code generation for MinGW QtCore 5.1.0. Two of the hacks are workarounds for already reported issues.