Add buildscript and more patches