Fix Compiler Errors

This is not yet been run but compiles