Shouldn't include the lib pragma when building python15.dll itself!
diff --git a/PC/config.h b/PC/config.h
index 4de07ef..ceac9a0 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -197,12 +197,14 @@
 
 #ifdef MS_WIN32
 
+#ifndef USE_DL_EXPORT
 /* So nobody needs to specify the .lib in their Makefile any more */
 #ifdef _DEBUG
 #pragma comment(lib,"python15_d.lib")
 #else
 #pragma comment(lib,"python15.lib")
 #endif
+#endif /* USE_DL_EXPORT */
 
 #define SIZEOF_INT 4
 #define SIZEOF_LONG 4