metahost.h is for the .NET 4 hosting API.  shlwapi.h is for the SHCreateStreamOnFileEx method to get an IStream for the configuration file.  I didn't see anything in the WiX code to create an IStream.