Fix compilation of Shader on MinGW32.

Broken during renaming in 5f51652aff5c31577b9816b41bbc92414d86b493.
Use proper debug callback signature on Windows.
DebugTools: fix warning on MinGW.