libfoundation: Synchronise with MLC branch.
Merge pull request #1536 from peter-b/develop

libfoundation: Synchronise MLC changes to 'develop' branch.