Fix warnings appearing with -Wstrict-aliasing flag.