d2: build macloader

Change-Id: I25e5e6bea9d239467c88365f268dd304a4c11ed0