Fix capture of function literals
Fix capture of function literals

C++ lambda syntax requires the use of the keyword "mutable" to allow
parameters captured by copy to be modified, so always generate function
literals with those.

Also, capture all automatic variables in the lambda body using the [=]
capture.

lpereira/gomoku