Fix build dependencies

Use LOCAL_SHARED_LIBRARIES instead of LDFLAGS to link with libraries.

Change-Id: I958c2f0b8b149f5311285703d55f6f6e76d577a9
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Merge "Fix build dependencies"
auto-merger: merge in from aosp/master