fix arch detection for Darwin