Improve handling of connections lost or dropped by the client
Fix build on Fedora (it could never work even on SL5/6 :-)).
Search also for jakarta jars in jar generator - fixes build on Fedora.