Added sl4j support, slightly modified patch from jherrmann.

https://sourceforge.net/tracker/?func=detail&aid=3182135&group_id=109626&atid=654002