fixed some makefile problems