Rename "index" variable as it shadows global declaration on older systems
Redo PLIST_WARN_DEPRECATED macro to work with older llvm/clang