fix target version tree depending on gcc version