Revert "Revert "Fix hundreds of warnings""

Please use an up to date Mono.

This reverts commit 54a64a751b7070237368b7967cc4a6adff6bc468.
Bump Mono dependency
Fix bad asserts triggered now we define DEBUG
Build correct config in winbuild.sh