towards Win64

Working towards #609
Still trying to get the unittests running.
It's not hugely critical, but -ffunction-sections/-fdata-sections is quite the pessimization in terms of object/library file size and linker performance if --gc-sections can't be used. I haven't actually checked what LLVM does for -ffunction-sections on MinGW, though, so…