Split prerequisites into build and runtime prerequisites.