diff --git a/source/blender/compositor/SConscript b/source/blender/compositor/SConscript
index d40015cf9d3fcfdc3ad82f69497a7216977967fa..073b100e156d5e7d6604a84c0791e157a4e96c96 100644
--- a/source/blender/compositor/SConscript
+++ b/source/blender/compositor/SConscript
@@ -28,7 +28,6 @@
 Import ('env')
 defs = ['GLEW_STATIC']
 
-# split into 3 modules to work around command length limit on Windows
 sources_intern = env.Glob('intern/*.cpp')
 sources_nodes = env.Glob('nodes/*.cpp')
 sources_operations = env.Glob('operations/*.cpp')
@@ -59,7 +58,13 @@ incs = [
 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
     incs.append(env['BF_PTHREADS_INC'])
 
-env.BlenderLib('bf_composite_intern', sources_intern, incs, defines=defs, libtype=['core'], priority=[166])
-env.BlenderLib('bf_composite_nodes', sources_nodes, incs, defines=defs, libtype=['core'], priority=[165])
-env.BlenderLib('bf_composite_operations', sources_operations, incs, defines=defs, libtype=['core'], priority=[164])
+if False: # gives link errors 'win' in env['OURPLATFORM']:
+    # split into 3 modules to work around command length limit on Windows
+    env.BlenderLib('bf_composite_intern', sources_intern, incs, defines=defs, libtype=['core'], priority=[166])
+    env.BlenderLib('bf_composite_nodes', sources_nodes, incs, defines=defs, libtype=['core'], priority=[165])
+    env.BlenderLib('bf_composite_operations', sources_operations, incs, defines=defs, libtype=['core'], priority=[164])
+else:
+    sources = sources_intern + sources_nodes + sources_operations
+    env.BlenderLib('bf_composite', sources, incs, defines=defs, libtype=['core'], priority=[164])
+
 
diff --git a/source/blender/freestyle/SConscript b/source/blender/freestyle/SConscript
index 2542bbd1ec6da2ab6d73e9e3e76935445d25c335..cae04f8642c147d21058504ba947cb5480bea291 100644
--- a/source/blender/freestyle/SConscript
+++ b/source/blender/freestyle/SConscript
@@ -78,11 +78,14 @@ sources = system_sources + image_sources + geometry_sources + scene_graph_source
           winged_edge_sources + view_map_sources + stroke_sources + \
           application_sources + interface_sources
 
-env.BlenderLib(libname="bf_freestyle", sources=sources, includes=Split(incs),
-               defines=defs, libtype=['core'], priority = [370]
-)
+if False: # gives link errors 'win' in env['OURPLATFORM']:
+    env.BlenderLib(libname="bf_freestyle_python", sources=python_sources, includes=Split(incs),
+                   defines=defs, libtype=['core'], priority = [369] # bf_python is 361
+    )
+else:
+    sources += python_sources
 
-env.BlenderLib(libname="bf_freestyle_python", sources=python_sources, includes=Split(incs),
-               defines=defs, libtype=['core'], priority = [369] # bf_python is 361
+env.BlenderLib(libname="bf_freestyle", sources=sources, includes=Split(incs),
+               defines=defs, libtype=['core'], priority = [370] # bf_python is 361
 )