Fix miscompilation in lambdas caused by gcc 4.7.2.