Added support for ADVANCED_OPTIMIZATION compilation