add first cut at Windows code (untested)