Simplified startup code. The example apps don't actually need to work--just compile.