Fix GCC compilation issues.