Fixing deprecation warning for backgroundSessionConfiguration: using conditional compilation