fixing cpp test builds for Win7/Mingw64/gcc/CodeBlocks