Fixing return type deduction of complex lambda expressions, which is a C++11 GCC extension