Add ability to cross compile for mac, fix detection if we need to build enet.