Rework the Makefile to be both GNU make and bmake compatible.