Make the makefile compatible with *BSD.