ruby,gccxml: fix importing empty classes that have non-empty base classes