Remove casts from lvalues to allow compilation under GCC 4.0