Fix deprecation warnings in pool manager