Added ADVANCED_COMPILE option.