fixed gnu makefile issues