Fix a compiler error that occurred when logging was off
Android: Fix the logic for when to use dispatch_retain or dispatch_release to not use iOS versions