Update Clang-based Makefile so that it can be used to compile libobjc2.

Also fixed a missing semicolon in `objc/runtime.h`.
---
 Makefile.clang |    7 +++----
 objc/runtime.h |    2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Makefile.clang b/Makefile.clang
index 2ed2f8f..38885ab 100644
--- a/Makefile.clang
+++ b/Makefile.clang
@@ -39,14 +39,13 @@ OBJECTS = \
 	selector_table.bc\
 	sendmsg2.bc\
 	statics_loader.bc\
-	sync.bc\
 	toydispatch.bc
 
 all: libobjc.so.$(VERSION) libobjc.a
 
 libobjc.so.$(VERSION): libobjc.o
 	@echo Linking shared library...
-	@ld -shared -o $@ libobjc.o
+	@clang -shared -o $@ libobjc.o -lpthread
 
 libobjc.a: libobjc.o
 	@echo Linking static library...
@@ -56,9 +55,9 @@ libobjc.o: libobjc.bc
 	@echo Generating native object code...
 	@llc -O3 -filetype=obj -o libobjc.o libobjc.bc
 
-libobjc.bc: $(OBJECTS) exports.txt
+libobjc.bc: $(OBJECTS)
 	@echo Linking bitcode...
-	@llvm-ld -internalize -internalize-public-api-file=../exports.txt -link-as-library -native -o libobjc.bc $(OBJECTS)
+	@llvm-ld -internalize -link-as-library -native -o libobjc.bc $(OBJECTS)
 
 .c.bc:
 	@echo Compiling $<...
diff --git a/objc/runtime.h b/objc/runtime.h
index 8439a5b..4f65cbc 100644
--- a/objc/runtime.h
+++ b/objc/runtime.h
@@ -113,7 +113,7 @@ typedef struct objc_method *Method;
 typedef signed char BOOL;
 #	else
 #		ifdef __vxwords
-typedef  int BOOL
+typedef  int BOOL;
 #		else
 typedef unsigned char BOOL;
 #		endif
-- 
1.7.6.msysgit.0

