Fix strict-aliasing errors