compiler: add early `Compiler::target_platform` with a non-nullable type