Some fixes regarding library config
Improved the Makefile template and included config.h in init.h