--- a/trunk/src/gx_head/wscript
+++ b/trunk/src/gx_head/wscript
@@ -1,5 +1,7 @@
 #! /usr/bin/env python
 # encoding: utf-8
+
+import sys
 
 def configure(conf):
     pass
@@ -66,7 +68,7 @@
     incl = ['.','./engine','../..','..','../headers','../../libgxwmm','../../libgxw'] # need ".." for config.h
     libpath = []
     lib = []
-    if bld.env['IS_LINUX']:
+    if sys.platform.startswith("linux"):
         lib.append('dl')
     uselib = ['JACK', 'SNDFILE', 'GTHREAD', 'GMODULE_EXPORT',
               'GTK2', 'GTKMM', 'GIOMM', 'FFTW3']