Framework ctor: read --headless param only after startup options has been processed. Fixes headless mode.