I tried not to use the make that came with mingw and instead I used the make in CodeBlocks and it works. So I guess something was wrong with mingw make...
Anyway, at least it works now, so I can start "playing" with Qt