Fixed detection of target compilation architecture.