add script to compile library