Manfredo earns 40th victory at Gingras's expense