Allow code to compile in gcc with -Wold-style-cast.