Avoiding a warning on Windows. Also addressed some Windows specific issues related to shared libraries.