libfoundation: Synchronise with MLC branch.