Fixes for compatibility with Arch Linux.