fix build problems with makefile