GM beats quarterly targets, raises forecast for the year