Update mac makefiles.

Some MIPS changes got cherrypicked here but only the linux makefiles
were updated. Update the mac makefiles to match.

Change-Id: I517d4e6cf18c3c9ff39dc949e48687cc44663c7e
42 files changed