canadian stocks eke out gains as gold miners rebound