Fix compile error on OSX
Fix LMS import and add some extra status messages