Fix all build warnings in test assemblies (apart from obsolete types)
Fix all build warnings in library assemblies (apart from obsolete types)