Silence warnings for external code
Fix most remaining warnings in external code