Fixed compilation issues for M upgrade Change-Id: I602aa7c8a2db9682a1fe94b7ca892027281deec7
Consolidate fake functions and create the loc_stub library out of the fake functions CRs-fixed: 605814 Change-Id: I351426591f220075fa7a7cec776f4f86c837a3f6