Make Makefile more portable.

See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html