add support for multiversion g++ dispatch