Index: KDE-ICE/SConscript
===================================================================
--- KDE-ICE/SConscript	(revision 473405)
+++ KDE-ICE/SConscript	(working copy)
@@ -27,7 +27,8 @@
 """
 
 if env['WINDOWS']:
-	obj          = env.genobj('shlib', env)
+#	obj          = env.genobj('shlib', env)
+	obj          = env.genobj('staticlib', env)
 	obj.ccflags  ="-DICE_t -DTRANS_SERVER -DTRANS_CLIENT -DTCPCONN -DANSICPP"
 	obj.libpaths = '../../win '
 	obj.libs     = 'kdewin32 ws2_32'
Index: SConscript
===================================================================
--- SConscript	(revision 473405)
+++ SConscript	(working copy)
@@ -23,7 +23,12 @@
 obj.execute()
 
 # dcopserver program
-obj = env.kdeinitobj(env)
+if env['WINDOWS']: 
+	# (rh) temporary hack, will be reduced to kdeinitobj
+	obj = env.qt4obj('program',env)
+else: 
+	obj = env.kdeinitobj(env)
+
 obj.target   = 'dcopserver'
 obj.source   = 'dcopserver.cpp dcopsignals.cpp'
 obj.uselib   = 'QT QTCORE QT3SUPPORT KDE4'
@@ -31,9 +36,11 @@
 obj.libs     = 'DCOP kICE '
 
 if env['WINDOWS']: 
+	if env['CC'] != 'cl':
+		obj.ccflags  = '-Dkdemain=main'
+
 	obj.libpaths += '../win/'
 	obj.libs     += 'kdewin32 ws2_32'
- 	obj.ccflags += '-Dkdemain=main '
 	obj.ccflags += '-DWIN32_LEAN_AND_MEAN '
  		
 obj.execute()
