Implement several missing functions (for Windows) in DynamicLibraryManager and fix a couple of compilation errors on Windows