ARM Linux changes

Made some mods to get the project to work on ARM linux