fix gcc4.7 build errors strict-aliasing