Modify makefile and header for archlinux build.