[Bug 1026971] Cannot link to libstdc++-devel-gcc5 with non-gcc compiler when libstdc++-devel is built with gcc6