add optimized flags if ADK_DEBUG for eglibc build