Updated for better LTO support using plugin