Make it compile in scala 2.11 without warnings