Merging latest spin_wait improvements + unused typedef removal.