Properly check for functions in Win32 shared libs