Fix Windows build;
Added more class linkage specifications for Windows;