A name of the dynamic library to open.
Whether system will search for dynamic library. If false name is expected to be a path for the dynamic library file.
Preconditions: !name.empty
Exception on opening error.
Note: Be careful with search = true as it can lead to security vulnerability if used careless.
Construct a DynamicLib with the library name.