Resolve dependencies in the demo app.

Either make BSPlatform/UI public, or... copy the necessary classes.