Fix creation of eclipse projects.

Parameter was incorrectly labeled.
Fix #3862.
Fix lint warnings, cleanup.