towards Win64

Working towards #609
Still trying to get the unittests running.
This needs to filter out MinGW, where the GNU ld doesn't support --gc-sections.