further work on portable makefiles