fixed compile error on allegro

removed defclass again

changed test