HOOOOO. Got it compiling in 64-bit mode. Now it compiles on MinGW in 32- or 64-bit, release or debug!