Makefile: set LDFLAGS correct when built with MINGW32

Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>
lib/tokenize: fix two compiler warnings about emtpy while loop

Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>