Fix GGC compilation errors

The 'weak' attribute only makes sense for public symbols but const has
private linkage by default. Added extern to explcitly declare external
linkage.

GGC seems to not be able to infer the move senmantics + cast at the same
time. Added an explicit move

Bug: 110153632
Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I623f9469bea58fb267be24ff7ec18cd1b186be89
2 files changed