now compiles. error was in declaring CG object as i was not using ValueType
removed arguments to SolvePrecond and enabled Solve fixed compilation errors