BSD support in Makefile