Update to run on Windows; add support for linux (untested)