Remove the vast majority of strict-aliasing warnings from GCC.

It is achieved by turning EXTRACT_{16,32,64}BITS() into inline function.