missing idfa and added compile flags

Thanks to Andy Maddison