Compensate for insane gcc strict aliasing handling
silence some warnings
correct set priority handling