Fix issue #83: bad generated listener code when built with Eclipse

This works for me.

Caveats:
* Generates code with a warning.  This happens anyway when built with ant anyway though so this isn't making the situation worse
* There are no tests - it's quite a simple change but tests would be nice anyway. I didn't add any as the Listener test file is currently all disabled.