make all targets build under OSX 10.8.2 and add iOS target