>    colorout.c:423:3: error: unknown type name ‘bool’
>    bool force_alpha_copy = false;

I guess you should not introduce c++ code in a file named .c :-)