Add EXPORT define for Windows DLL exporting in cross-platform code.