Hack for hxjava compatibility.
Don't assume dom on js,
Add most platforms.
Merge branch 'master' of https://github.com/haxetink/tink_core