Add thread to fix gcc