changes for compilation with arm cross compiler