Fix compilation on ECL

* Fix compilation errors on ECL introduced by the previous commit.
* Some examples work on ECL, however I have not found a reliable way
  to get arglist information in ECL, so examples that use function
  approximation don't work
.