Added API to delegate resolving of dependencies to custom methods (github issue #5, inspired by pull request #9)
Handle OOM case for result object.
LoadLibrary returns NULL if loading failed
Use "SetLastError" to flag errors to caller while loading.
Use "SetLastError" for errors in "GetProcAddress".