Fixed some class exports and net issues on Windows.