Update CI to run build and tests on Macos and Windows in addition to Ubuntu.