Utility: provide platform-independent macro for static library visibility.

Why dllexport/dllimport has to be so damn complicated?
Fix static library compilation on Windows.