build system refactoring, add license to README.md