lib: Changes to avoid warnings during compilation

Changes to avoid warnings for enabling Werror flag in LK

Change-Id: I893ae71ef4ebd54faf1c3bed1d2080d9d733d418
35 files changed