edit buildscript for personal use and fix build error