Update for ast gc removal
Support cargo build on mac
Fix deprecated items