Fix some problems with allegro4 dependencies.