Converting lambdas to plain old static function pointers