emulate dlopen(NULL, ...)

Passing in NULL as the library name to dlopen allows you to search
the current executable and its loaded dynamic libraries.  There is
no equivalent to this in Windows, so emulate the behavior using
psapi.