Fix ADVANCED compilation