added --disable-threads flag to configure