Fix old makefile builds