Fix some problems with allegro4 and continue the work with allegro-devel.