Remove compilation warnings from libprivilege-control tests
[Issue#] SSDWSSP-482
[Bug] Libprivilege-control tests displayed warnings during compilation.
[Cause] N/A
[Solution] Replace deprecated functions with their replacements, supress warnings for functions
that have no replacements, remove other warnings.
[Verification] Build package - no warnings should appear. Run libprivilege-control-tests, all tests
should pass just as they did earlier.
Change-Id: I41e2f69ad7fb1ff38b04eb7bcdfefcb7248fc0a9