Move gwt-incompatible methods to Platform, add a gwt-compatible stub, and fix up the tests.