towards Win64

Working towards #609
Still trying to get the unittests running.
Before I checked env == MSVC but that value is too new.
This code here should be independent of --gc-sections though.