Compiling 4.17 source code in Mac

Hey Guys ,
I am looking to compile a project in 4.17 , as the project has some c++ files . when i do so it gives me lambda error file is included , So i got a solution from
which needs to modify some files and all that , which gives me another namespace error ,

So i did not changed any file and tried to compile the Engine source code, which also gives me the lambda error ,
so can anyone help me to resolve the issue as i have to run the project in 4.17 , I am also getting the same error in 4.18 , but in 4.19 i think the have patched the error which inturns runs the project just fine .
Can anyone help me with this thank you so much .