Modifications for ArchLinux build taken from AUR.