Fixing compilation errors in cloud controller