Windows port: add OSL_STATIC_LIBRARY define to disable dllimport/dllexport
when using BUILDSTATIC. The application linking against OSL needs to define
this if wants to link against a static OSL library on Windows.

Also fix build errors adding dllimport/dllexport on class members when the
class had them already.