Fix makefile to build on Gentoo