Add deps recipe.
Switch to cross-platform way of getting CPU count.