General warning fixes

This pull fixes some of the warnings Xcode reported, replaces methods marked as deprecated by their sanctionned counterparts.

There's still a deprecation warning left about `AuthorizationExecuteWithPrivileges` but the fix isn't as easy...