Remove compiller warnings.

Add to Makefile static compillation rules

For static: make static
For dynamic can be use just: make