Building vm with profile 22: links OK
Fix #define conflicts in tests apps with mingw-w64
Linking with gcc 4.9 (profile 20)