Fix strict-aliasing violations