Expose runClangApp to increase memory management flexibility