windows: disable CRT debug handler on MinGW32

We cannot actually use it because the header is not present, so disable
it. On MinGW-w64 it does work though.
build: fix build on MinGW32