Common Platform/Toolchain base classes for native and jvm

This reverts commit 54f55f62d01a592550455adf6d2f7d1c4913f96c.
Fixes test failure after platform rename