We should WINDOWS_EXPORT_ALL_SYMBOLS for individual targets, not at directory scope. Morever, we can set it for any platform and compiler, so no need for the check for WIN32 and MSVC.