update buiild scripts, some xdk fixes, are libs build correctly ?