use the gendef provided in the mingw crt download. No need to download twice.