Makefile improvement, remove C/C++ warnings