fixes to Makefile to support other distros