Set opencs target properties in appropriate section Use forward declaration for Ui::FileDialog (#7348)