Fix an issue where static lambdas could not see things in the surrounding namespace