Try to workaround some issues with MSVC lambdas.