Suppress some deprecation issues
Attach local source files to selected external libraries
Format code around logging
Fix some coding issues, mostly casts