WIP: Add export annotations for MSVC, though they don't seem to be working.
More fixes for MSVC. Specifically, correctly export instantiated templates.