fixed compile errors from foundry update