Fix a clang lambda issue in libmergeimage