ObjC: fixed minor (cross-)compilation issues

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
ObjC: print file name for file access errors

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>