Fix mac build: not define these locals for mac

Change-Id: I9239e00aaed39eaf4e8a3afc79f78557a8708bf5