Minor fixes

* Make *Makefile* more flexible.
* Make *Makefile* and *install.sh* respect `CPPFLAGS`.
* Avoid function declaration with undefined arguments.