fixed #2046: Stripping newlines from log message and fixing linux library location.