Improve the script for Makefile generation and add support to compile the 'libc'