Fixed almost every single compile error.  Only a handful are left.