Initialize CFLAGS and LDFLAGS properly in Makefile of tests

Attempt to fix issue #92