Remove lvalue cast.

lvalue casting was a GCC extension to C that worked until GCC 3.5
and as such it's no longer supported.