Fix strict aliasing issues (hopefully)