Fix dependency generation when using NetBSD make.