Dynamically link the shell against libmujs.so

--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,7 @@
 
 $(OUT)/libmujs.$(SO_EXT): one.c $(HDRS)
 	@ mkdir -p $(dir $@)
-	$(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared $(LDFLAGS) -o $@ $< -lm
+	$(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared -Wl,-soname=libmujs.so.$(VERSION) $(LDFLAGS) -o $@ $< -lm
 
 $(OUT)/mujs: $(OUT)/libmujs.so $(OUT)/main.o
 	@ mkdir -p $(dir $@)
@@ -90,9 +90,9 @@
 	@ mkdir -p $(dir $@)
 	$(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -shared $(LDFLAGS) -o $@ $< -lm
 
-$(OUT)/mujs: $(OUT)/libmujs.o $(OUT)/main.o
+$(OUT)/mujs: $(OUT)/libmujs.so $(OUT)/main.o
 	@ mkdir -p $(dir $@)
-	$(CC) $(LDFLAGS) -o $@ $^ $(LIBREADLINE) -lm
+	$(CC) $(LDFLAGS) -o $@ $(OUT)/main.o -L $(OUT) $(LIBREADLINE) -lmujs -lm
 
 $(OUT)/mujs-pp: $(OUT)/libmujs.o $(OUT)/pp.o
 	@ mkdir -p $(dir $@)
