Simultaneous cooling and entanglement of mechanical modes of a micromirror in an optical cavity