--- a/Bmakefile
+++ b/Bmakefile
@@ -211,8 +211,8 @@
 all: clean $(DLLS)
 
 realclean: clean
-	if exist *.dll del *.dll
-	if exist *.lib del *.lib
+	if exist pthread*.dll del pthread*.dll
+	if exist pthread*.lib del pthread*.lib
 	if exist *.stamp del *.stamp
 
 clean:
@@ -238,7 +238,7 @@
 $(DLLS): $(DLL_OBJS) version.res
 	ilink32 /Tpd /Gi c0d32x.obj $(DLL_OBJS), \
 		$@, ,\
-		cw32mt.lib import32.lib, ,\
+		cw32mti.lib import32.lib, ,\
 		version.res
 
 .c.obj: