Support android cross compile on mac.

*Upstreaming @yichoi's patch from @rust-lang [libuv](https://github.com/rust-lang/libuv/tree/800b56fe6af21ffd8e56aee8cf12dd758f5bbdf1).*