Convert some versions of EXTRACT_{16,32,64}BITS() to inline functions.

It remove the vast majority of strict-aliasing warnings from GCC.