remove a couple of unused function definitions causing warnings
move RenderColorLayer to a cpp file. Let it not be static, as it's used in two TUs.