fix deprecation warnings in build files