Fixed build issue on Arch Linux

It now builds on ArchLinux using these changes. Hope it works elsewhere as well.