add missing license header, fix minimal compiler warning