Cooling and squeezing via quadratic optomechanical coupling