Add which, ninja and distcc to x86_gcc2 repo

 * Also a fix in cmake ninja code generator to avoid 'command line too
long' failure.