Construction of the BNL EBIS preinjector