platform: generalize stubs
platform: rename CFGStub to just Stub