Fix native failure and improve licenseck