Fix Windows linker errors (LNK2005, LNK2019)

OLeStream and AppSupport need to be exported, else they show up as unresolved on MSVC2012.

LEGACY_RETURN_COUNT and RETURN_COUNT are already initialized in the header and show up as multiply defined when appearing in the implementation as well.