More fixes to cross compiler script