Cleaned a lot of warnings (mostly unspecified class templates)