fixed some things that were causing deprecation warnings and compiler errors on my system