fixed up a bunch of errors in amd64-codegen and various other places, as of now everything compiles, albiet with a bunch of errors