Small cleaning

- fixed some compilation warnings
- rewrote a bit Makefile to make it easier to use