qttools_core: fix build errors with msvc2012