Fix warnings while building

Deprecation warnings and whatever