Make Makefile more portable.

See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html

Now it works on BSD make too.