Improve compileAllExamples command line

* Add options
* Improve fiability