(Apple) Ifdef code with HAVE_LOCATION and HAVE_CAMERA