Permission checks & fixing compiler derps

Permissions are now static strings for easier maintenance.

Fixed some last compiler derps introduced by CLocation refactoring.