Updates to the Windows implementation for stream decoding.
Minor formatting fixes and fixed an #undef in the Linux implementation.