Fixing minor syntax bugs to make the code buildable.