Move CodeGenOptions constructor out-of-line and add missing headers. NFC.