update build script and license to bsd2clause