update build to remove thread dependency