Fixed NPE in AppCompiler when building console apps. (#93)