fix some makefile issues