Safe and static parsing for Mach-O format