Make lwp_info->arch_private handling shared
Rename some functions
Minor code changes
Comment changes