[build] Avoid strict-aliasing warnings when building with gcc 4.4