fix more compilation warnings, missing functions

some functions were changed or introduced in 24.3
merge use-current pkg-dir package-24.4