diff --git a/source/blender/freestyle/SConscript b/source/blender/freestyle/SConscript
index 770ec8a1c2fd99b865e2cd7e5ff29d906bbdb99f..430b93d408df7030fdc035a97cdbf061a3b8988c 100644
--- a/source/blender/freestyle/SConscript
+++ b/source/blender/freestyle/SConscript
@@ -12,6 +12,14 @@ incs += ' #/extern/glew/include #/intern/guardedalloc'
 incs += ' ' + env['BF_PYTHON_INC']	
 incs += ' ' + env['BF_PNG_INC']
 
+
+if env['OURPLATFORM'] == 'linux2':
+	cflags='-pthread'
+	incs += ' ../../../extern/binreloc/include'
+
+if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
+	incs += ' ' + env['BF_PTHREADS_INC']
+
 ########################################################
 #	folders sources 
 ########################################################