Improved detection of the GCC target architecture