[MachO] Move trivial accessors to header.