New loading scheme for Winelib apps, makes them behave like builtin
dlls and takes load order into account. Install them in dlldir.
Improved MODULE_GetBinaryType to recognize ELF binaries.
Added a wrapper script to setup the environment when running directly
from inside the source tree.

diff --git a/scheduler/client.c b/scheduler/client.c
index c8523ee..aabae96 100644
--- a/scheduler/client.c
+++ b/scheduler/client.c
@@ -488,24 +488,12 @@
                 {
                     strcpy( p, "/wineserver" );
                     execl( path, "wineserver", NULL );
-                    strcpy( p, "/server/wineserver" );
-                    execl( path, "wineserver", NULL );
                 }
-		free(path);
+                free(path);
             }
 
-            /* now try the path */
+            /* finally try the path */
             execlp( "wineserver", "wineserver", NULL );
-
-            /* and finally the current dir */
-            if (!(path = malloc( strlen(oldcwd) + 20 )))
-                fatal_error( "out of memory\n" );
-            p = strcpy( path, oldcwd ) + strlen( oldcwd );
-            strcpy( p, "/wineserver" );
-            execl( path, "wineserver", NULL );
-            strcpy( p, "/server/wineserver" );
-            execl( path, "wineserver", NULL );
-            free(path);
             fatal_error( "could not exec wineserver\n" );
         }
         started = 1;