make Win64 usable

Working towards #609
Still trying to get the unittests running.