fix all deprecation warnings in build