target architecture detection