Fixed some come compile errors when buildin in Archlinux