Fix GCC compilation errors