public static IntPtr LoadLibrary(string libname) { return(Common.OSTest.IsWindows() ? Windows.DLOpen(libname) : Common.OSTest.IsRunningOnMac() ? OSX.DLOpen(libname, RTLD_GLOBAL | RTLD_LAZY) : Linux.DLOpen(libname, RTLD_GLOBAL | RTLD_LAZY)); }