Fixed the exporting of some classes on Windows.