darwin: modify build script for atv2
darwin: fix atv2 build on new ios sdk