tweak compile.sh and move missing packages into main folder