The United States built its army prior to joining the war in what way?