Windows port: add OSL_STATIC_LIBRARY define to disable dllimport/dllexport

The application linking against OSL needs to define this if wants to link against a static OSL library on Windows. However we still dllexport symbols needed by LLVM.

Also fix build errors adding dllimport/dllexport on class members when the class had them already.