Make lambda-lifted functions static (closes #12)