red-brick: Use explicit role values for storing files and logs metadata

Don't rely on the default values.
red-brick/pi: Add dedicated close button to C/C++ and Delphi compile dialog