Fix strict-aliasing warnings