* fix threading problem on Darwin
