The reinterpret cast crashes the compilation for gcc 4.6.3 (ubuntu 12.04)