Personally I would prefer to stick with the default of the operating system, rather than compiling with a different compiler version than the rest of the packages are.
What is the actual benefit to have kamailio compiled with a different version that the rest of the packages? For example, what makes it better to have Kamailio compiled with gcc X and on the same system to use MySQL that was compiled with gcc Z?