Fix aliasing and C++11