Fix build
Add local mode for pkg-install.
If no pkg.conf if found continue
Remove unused variables
More unused variable