Add test support into configure.

Ttest-app is builded only for make check and it is run by test.sh which sets LD_PRELOAD.
Add headers into malloc-lib/Makefile.am and make it more clear.