Cycles-Bake: Fix warnings and compile errors (hopefully)