1. support .c in makefile generator. 2. add test to check C interfaces.
Merge pull request #281 from jwwang/add_gtests

1. support .c in makefile generator. 2. add test to check C interfaces.