lms: Several improvements and compilation/runtime fixes

Continuation of initial work done on LimeSuite support from Harald.

Change-Id: Ib2fca81b76d027b08e2891056fa076d071597783
6 files changed