Add support for cross compiling Windows tools on Darwin.

Change-Id: I71372543e8da02e1d2437d6da7eb46b0a72c9870
Merge remote-tracking branch 'CyanogenMod/cm-10.1' into cm-10.1