Make warnings to C style casts go away.

There were some cases where we got warnings for old C style casts. The casts
are done in C macros belonging to C interfaces to some libraries that we have
to use. Where we couldn't avoid those casts they were wrapped in GCC pragmas
that silence the warning.