MSVC: handle symbol visibility

On MSVC, the exported symbols have to be marked both in the header and
in the implementation as dllexport, whereas on GCC the visibility=normal
attribute is only supposed to be used in the implementation. As a
result, we need two types of macros here, one for the public headers,
and the other for TUs with implementation. Also, the symbol name cannot
be generic ("API") because we only want to mark as dllexport those
symbols which are in a library that we're building *now*. Otherwise this
will break havoc in any libraries which also use the `ABI` macro *and*
also use libyang.
diff --git a/src/plugins.h b/src/plugins.h
index 6263c7d..f868879 100644
--- a/src/plugins.h
+++ b/src/plugins.h
@@ -83,7 +83,7 @@
  * @return LY_EINVAL when pathname is NULL or the plugin contains invalid content for this libyang version.
  * @return LY_ESYS when the plugin file cannot be loaded.
  */
-LY_ERR lyplg_add(const char *pathname);
+LIBYANG_API_DECL LY_ERR lyplg_add(const char *pathname);
 
 /** @} plugins */