Remove CreateWindowPlugin
Remove old style casts
Fix AFAIK all old style casts