Use unique_ptr for ScratchBuf and PragmaHandlers in the preprocessor.