lambda capture is part of C++1y. We should decide when to start using it - for the time being disabling them
replaced for_each with blas::scale_n, and minor fix to avoid a compilation error