Fixed various compiler errors in the app project.