Fix makefile generation.