Fix Allegro-specific code.