Updated for arch

Modifications for Archlinux ARM platform. Should probably run with
non-ARM Archlinux distributions.