Compiling Windows Exploits Guide

You can use mingw