Rework liblight.c
Remove flags