Fix GCC 46 warnings.