makefile: add some non-GNU compatibility updates