Arch Linux Build

The set of changes i had to make in order to build using Arch Linux
and Ubuntu 13.10.