GCC 4.8 is very old and likely causing all the issues here.
get a newer GCC.
and maybe a newer python.