Fix compilation errors for app