Fix GCC compilation errors.