add hack for pthread define, check this back later
DEFINES: PTHREAD