Add support to cross-compile for Mac from linux