Fix exports and avoid using sources already linked on tests.
Review Request #127709 - Created April 22, 2016 and submitted
|Andrius da Costa Ribas|
Rework from scratch on Review Request - 123270
I'm currently unable to run ctest, but this fixes all inconsistent linkage errors and warnings on Windows (MSVC 2015 64-bit).