fix C flags in thumbs