Move GUID-related objects to riffenc.c and riff.c.

This simplifies the following eac3-in-wav patch.
Support writing E-AC3 in wav.