Get linker parameter order correct for dependency resolution
Serialise rdctype::wstr as if it were a wstring (ie. as UTF-8).

This is only used in network transmission so we don't have to worry about
backwards compatibility.
Fix typo
Return ID of output window
Use the same FBConfig for both the pbuffer and context, else it might fail