Scripts/Eye of Eternity: Fixed some silly code
Core: Fixed compile warnings and errors