Tweaks compiler warnings

- Ignores warnings about generics.
- Ignores warnings about methods with constructor names.