make sure new build tools are available on PATH
reorder packages, fix linux compilation, fix p362 compilation