The COMPASS setup for physics with hadron beams