fix windows build

There are three fixes:
* Missed windows-only case in my type-generator refactor
* When running on my cygwin instance, gcc produces executables that can't find libstdc++6.dll.  Statically link type-generator on windows.
* Update LLD macros for more recent gcc versions (not sure how universal this is, but it works everywhere I've tried it...)