add makefile, config files and teststubs.c for gcc unittest.