Fixed token memory leak

Ajusted Makefile to match flexible options